diff options
author | marino <marino@pkgsrc.org> | 2012-10-09 07:36:08 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2012-10-09 07:36:08 +0000 |
commit | 1b170058661a432448931b147226b63f811265b3 (patch) | |
tree | ca13baa3127c8a6d0e04e7dbb78ab769419f0fcb /pkgtools | |
parent | f8f9564f76a469889c55f7afb05842752f74da83 (diff) | |
download | pkgsrc-1b170058661a432448931b147226b63f811265b3.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')
-rw-r--r-- | pkgtools/pkg_install/Makefile | 6 |
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} |