Skip to content

Commit

Permalink
net-mgmt/nagnu: unbreak on FreeBSD 13+
Browse files Browse the repository at this point in the history
Build with -fcommon to avoid a duplicate symbol error.

See also:	frlen/nagnu#5
Approved by:	portmgr (build fix blanket)
  • Loading branch information
clausecker committed Apr 11, 2023
1 parent beea7cf commit b2f6d7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions net-mgmt/nagnu/Makefile
@@ -1,5 +1,6 @@
PORTNAME= nagnu
PORTVERSION= 1.1.3
PORTREVISION= 1
CATEGORIES= net-mgmt

MAINTAINER= fredrik@min-hemsida.net
Expand All @@ -9,9 +10,6 @@ WWW= https://github.com/frlen/nagnu
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

BROKEN_FreeBSD_13= ld: error: duplicate symbol: errorss
BROKEN_FreeBSD_14= ld: error: duplicate symbol: errorss

LIB_DEPENDS= libcurl.so:ftp/curl

USES= ncurses
Expand All @@ -22,6 +20,7 @@ PLIST_FILES= bin/nagnu \
share/examples/nagnu/nagnu.conf.sample

GNU_CONFIGURE= yes
CFLAGS+= -fcommon

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nagnu ${STAGEDIR}${PREFIX}/bin
Expand Down

0 comments on commit b2f6d7d

Please sign in to comment.