Skip to content

Commit

Permalink
net-mgmt/mk-livestatus: Remove OSVERSION conditionals
Browse files Browse the repository at this point in the history
Minimum supported OSVERSION is 120400 by the port infrastructure so no
need for additional conditions.

Approved by:	portmgr (blanket)
  • Loading branch information
5u623l20 committed Sep 29, 2023
1 parent 35c100f commit 747e2e3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions net-mgmt/mk-livestatus/Makefile
Expand Up @@ -29,6 +29,8 @@ EXAMPLE_FILES= example_multisite.py example.py \
# parameter "command_file" from nagios.cfg
COMMAND_FILE?= /var/spool/nagios/rw/live

CFLAGS+= -fcommon

OPTIONS_DEFINE= EXAMPLES PERL
OPTIONS_SINGLE= NAGIOS
OPTIONS_SINGLE_NAGIOS= NAGIOS3 NAGIOS4
Expand Down Expand Up @@ -59,11 +61,4 @@ post-install-EXAMPLES-on:
${PORTEXAMPLES:S|^|${WRKSRC}/api/python/|}
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/api/python/|} ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.pre.mk>

# Fix building with clang 11 ("ld: error: duplicate symbol: g_mainthread_id")
.if ${OSVERSION} >= 1204000
CFLAGS+= -fcommon
.endif

.include <bsd.port.post.mk>
.include <bsd.port.mk>

0 comments on commit 747e2e3

Please sign in to comment.