diff options
author | richard <richard> | 2015-10-05 03:56:17 +0000 |
---|---|---|
committer | richard <richard> | 2015-10-05 03:56:17 +0000 |
commit | 30d7a8452334586cf5e1a6238ba7db9715367d80 (patch) | |
tree | 982201a1d14b6326289b06e6a77b323f92bf8826 | |
parent | 005bb7c7a436ae279094d499a0119c74562183ff (diff) | |
download | pkgsrc-30d7a8452334586cf5e1a6238ba7db9715367d80.tar.gz |
Specify 'elf' output format for NASM on SunOS to get over undefined symbols
Configure would like an nm using easy to parse format -p on SunOS
bump PKGREVISION
-rw-r--r-- | audio/openal/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/audio/openal/Makefile b/audio/openal/Makefile index 747e35a5605..13d9128b3ab 100644 --- a/audio/openal/Makefile +++ b/audio/openal/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.31 2014/02/28 11:59:10 jperkin Exp $ +# $NetBSD: Makefile,v 1.32 2015/10/05 03:56:17 richard Exp $ DISTNAME= openal-0.0.8 -PKGREVISION= 5 +PKGREVISION= 6 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_GENTOO:=distfiles/} @@ -35,6 +35,18 @@ SUBST_SED.fixdev= -e 's;/dev/dsp;${DEVOSSSOUND};g' CONFIGURE_ENV+= NASM_FORMAT="-f macho" .endif +.if ${OPSYS} == "SunOS" +. if ${ABI} == "64" +CONFIGURE_ENV+= NASM_FORMAT="-f elf64" +. else +CONFIGURE_ENV+= NASM_FORMAT="-f elf32" +. endif +CONFIGURE_ENV+= NM="${NM:Unm} -p" +LDFLAGS+= -Wl,-zdefs +.endif + +BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm + .include "../../mk/pthread.buildlink3.mk" .include "../../mk/oss.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |