diff options
author | tnn <tnn@pkgsrc.org> | 2007-12-22 23:41:01 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2007-12-22 23:41:01 +0000 |
commit | d80d3fb23ee94a0e976d236ec90c405e36bb6db4 (patch) | |
tree | 7ee1df9f8d8c7c2e4caf5435f97a9159a900d0ac | |
parent | 574554291ae6a836e460183923707976765ee2d1 (diff) | |
download | pkgsrc-d80d3fb23ee94a0e976d236ec90c405e36bb6db4.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.
-rw-r--r-- | archivers/arj/Makefile | 8 |
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 \ |