summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-10-09 07:36:08 +0000
committermarino <marino@pkgsrc.org>2012-10-09 07:36:08 +0000
commite9f4a1d8f8dcc589fc843457ce56d81880eaec6f (patch)
treeca13baa3127c8a6d0e04e7dbb78ab769419f0fcb /pkgtools/pkg_install
parentd2cf2d723616ede9cbc87323e4e74a006b7877e1 (diff)
downloadpkgsrc-e9f4a1d8f8dcc589fc843457ce56d81880eaec6f.tar.gz
pkgtools/pkg_install: Fix build on gcc4.7
pkg_install uses source files from net/libfetch so it needs the same no-strict-alias flag at libfetch when building on gcc 4.7
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile
index 26a57a36d60..45b57843246 100644
--- a/pkgtools/pkg_install/Makefile
+++ b/pkgtools/pkg_install/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.187 2012/09/11 23:19:36 asau Exp $
+# $NetBSD: Makefile,v 1.188 2012/10/09 07:36:08 marino Exp $
# Notes to package maintainers:
#
@@ -61,6 +61,10 @@ CPPFLAGS+= -D_FILE_OFFSET_BITS=64
CPPFLAGS+= -DDEF_UMASK=${DEF_UMASK}
+# pkg_install uses the files from net/libfetch. The file ftp.c intentionally
+# violates strict-aliasing rules, so a flag is needed to compile it on gcc 4.7
+CFLAGS+= -Wno-strict-aliasing
+
MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH:Q}
MAKE_ENV+= OPSYS=${OPSYS:Q}
MAKE_ENV+= MANINSTALL=${MANINSTALL:Q}