diff options
author | minskim <minskim> | 2004-06-18 17:41:10 +0000 |
---|---|---|
committer | minskim <minskim> | 2004-06-18 17:41:10 +0000 |
commit | ec16b9b9614d7a2f8bc4897c44df195f52dc6705 (patch) | |
tree | c11515af7abf30904858fcff736dd5f9ddccae27 /archivers | |
parent | c957b88f9ed29a108e90f1682f88bc1786eda8e8 (diff) | |
download | pkgsrc-ec16b9b9614d7a2f8bc4897c44df195f52dc6705.tar.gz |
Do not use "-DBSD" and "-lcompat" on Linux.
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/xbin/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/archivers/xbin/Makefile b/archivers/xbin/Makefile index 0c0ba36fd7e..2dd2d61d09e 100644 --- a/archivers/xbin/Makefile +++ b/archivers/xbin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2004/03/23 04:40:59 jlam Exp $ +# $NetBSD: Makefile,v 1.16 2004/06/18 17:41:10 minskim Exp $ # DISTNAME= ${PRGNAME}unix @@ -20,6 +20,12 @@ USE_BUILDLINK3= yes PRGNAME= xbin EXTRACT_ONLY= # empty +.include "../../mk/bsd.prefs.mk" +.if ${OPSYS} != "Linux" +CFLAGS+= -DBSD +LDFLAGS+= -lcompat +.endif + post-extract: .for dfile in ${DISTFILES} ${CP} ${DISTDIR}/${dfile} ${WRKSRC} @@ -27,7 +33,7 @@ post-extract: do-build: cd ${WRKSRC} && \ - ${CC} ${CFLAGS} -DBSD -o ${PRGNAME} ${DISTNAME}.c -lcompat + ${CC} ${CFLAGS} -o ${PRGNAME} ${DISTNAME}.c ${LDFLAGS} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PRGNAME} ${PREFIX}/bin |