summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-06-18 17:41:10 +0000
committerminskim <minskim@pkgsrc.org>2004-06-18 17:41:10 +0000
commitb23abaaf3ff757937320ba56b8e4b9e0068ecc1f (patch)
treec11515af7abf30904858fcff736dd5f9ddccae27 /archivers
parentb7e0ff5818aa3a5ae6e4b5b5c6d40e5a15fa909a (diff)
downloadpkgsrc-b23abaaf3ff757937320ba56b8e4b9e0068ecc1f.tar.gz
Do not use "-DBSD" and "-lcompat" on Linux.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/xbin/Makefile10
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