Pass -Db_asneeded=false on ld.bfd arches.

ok sthen@
This commit is contained in:
ajacoutot 2019-01-07 13:54:01 +00:00
parent c420427aa2
commit 04e5c102b8
2 changed files with 25 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.41 2019/01/06 20:15:51 landry Exp $
# $OpenBSD: Makefile,v 1.42 2019/01/07 13:54:01 ajacoutot Exp $
COMMENT= curses based frontend for mpd
@ -6,7 +6,7 @@ VER= 0.33
DISTNAME= ncmpc-${VER}
EPOCH= 0
CATEGORIES= audio
REVISION= 0
REVISION= 1
HOMEPAGE= https://www.musicpd.org/clients/ncmpc/
@ -36,8 +36,15 @@ LIB_DEPENDS= devel/gettext \
CONFIGURE_ARGS= -Dlirc=disabled \
-Dhtml_manual=false \
-Dlocale=enabled \
-Dmouse=enabled \
-Db_asneeded=false
-Dmouse=enabled
# disable meson's default of using "-Wl,--as-needed" on ld.bfd arches;
# build failures due to undefined references are often seen.
.include <bsd.port.arch.mk>
.if !${PROPERTIES:Mlld}
CONFIGURE_ARGS += -Db_asneeded=false
.endif
CONFIGURE_ENV= CPP=${CPP} \
CPPFLAGS="-D_GNU_SOURCE \
-D_DEFAULT_SOURCE \

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.183 2019/01/03 13:36:23 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.184 2019/01/07 13:54:01 ajacoutot Exp $
COMMENT-main= GNOME Virtual File System
COMMENT-smb= GVFS mount module for samba
@ -15,6 +15,12 @@ PKGNAME-goa= ${GNOME_PROJECT}-goa-${GNOME_VERSION}
PKGNAME-nfs= ${GNOME_PROJECT}-nfs-${GNOME_VERSION}
PKGNAME-google= ${GNOME_PROJECT}-google-${GNOME_VERSION}
REVISION-main= 0
REVISION-smb= 0
REVISION-goa= 0
REVISION-nfs= 0
REVISION-google= 0
# LGPLv2
PERMIT_PACKAGE_CDROM= Yes
@ -77,6 +83,13 @@ CONFIGURE_ARGS += -Dafc=false \
-Dlogind=false \
-Dsystemduserunitdir=no \
-Dtmpfilesdir=no
# disable meson's default of using "-Wl,--as-needed" on ld.bfd arches;
# build failures due to undefined references are often seen.
.include <bsd.port.arch.mk>
.if !${PROPERTIES:Mlld}
CONFIGURE_ARGS += -Db_asneeded=false
.endif
# needs libcap
CONFIGURE_ARGS += -Dadmin=false