pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/xbin Do not use "-DBSD" and "-lcompat" on Li...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5fd88a78af6e
branches:  trunk
changeset: 476667:5fd88a78af6e
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Fri Jun 18 17:41:10 2004 +0000

description:
Do not use "-DBSD" and "-lcompat" on Linux.

diffstat:

 archivers/xbin/Makefile |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 15e00894d822 -r 5fd88a78af6e archivers/xbin/Makefile
--- a/archivers/xbin/Makefile   Fri Jun 18 12:50:51 2004 +0000
+++ b/archivers/xbin/Makefile   Fri Jun 18 17:41:10 2004 +0000
@@ -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 @@
 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 @@
 
 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



Home | Main Index | Thread Index | Old Index