summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authormarino <marino>2012-10-09 07:36:08 +0000
committermarino <marino>2012-10-09 07:36:08 +0000
commit6ab92ab6ba98d74771cae480cf0a16300e4ef652 (patch)
treeca13baa3127c8a6d0e04e7dbb78ab769419f0fcb /pkgtools/pkg_install
parentf79cc2cfda5d50c647c6b3ec5a79d36003fa7034 (diff)
downloadpkgsrc-6ab92ab6ba98d74771cae480cf0a16300e4ef652.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}