summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authortnn <tnn>2007-12-22 23:41:01 +0000
committertnn <tnn>2007-12-22 23:41:01 +0000
commit10ea71f74d71c4aee4579d02ec9fc274be76dd4b (patch)
tree7ee1df9f8d8c7c2e4caf5435f97a9159a900d0ac /archivers
parentfb7e82609fa00153fd5852101b7eacfb874df185 (diff)
downloadpkgsrc-10ea71f74d71c4aee4579d02ec9fc274be76dd4b.tar.gz
Disable gcc's unit-at-atime optimization if we're using gcc4, since it
interferes with ARJ's "postproc" utility. PR pkg/36919 from Yakovetsky Vladimir.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/arj/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/archivers/arj/Makefile b/archivers/arj/Makefile
index 3e952708abf..68bb6fce0a0 100644
--- a/archivers/arj/Makefile
+++ b/archivers/arj/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2006/09/09 02:41:53 obache Exp $
+# $NetBSD: Makefile,v 1.23 2007/12/22 23:41:01 tnn Exp $
DISTNAME= arj-3.10.22
CATEGORIES= archivers
@@ -20,6 +20,12 @@ MAKE_FLAGS+= INSTALL_DIR=${INSTALL_PROGRAM_DIR:Q}
INSTALL_UNSTRIPPED= yes # $LOCALBASE/bin/arj must have symbol table
ARJ_DOCSDIR= ${PREFIX}/share/doc/arj
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc-4.*)
+CFLAGS+= -fno-unit-at-a-time
+.endif
+
pre-configure:
${CP} -f ${WRKSRC}/environ.c ${WRKSRC}/environ.c.1
${SED} -e 's|@PREFIX@|${PREFIX}|g' < ${WRKSRC}/environ.c.1 \