pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install pkgtools/pkg_install: Fix build o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/85132d3afe7f
branches:  trunk
changeset: 609745:85132d3afe7f
user:      marino <marino%pkgsrc.org@localhost>
date:      Tue Oct 09 07:36:08 2012 +0000

description:
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:

 pkgtools/pkg_install/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r bbcfc2c9ee1a -r 85132d3afe7f pkgtools/pkg_install/Makefile
--- a/pkgtools/pkg_install/Makefile     Tue Oct 09 02:48:16 2012 +0000
+++ b/pkgtools/pkg_install/Makefile     Tue Oct 09 07:36:08 2012 +0000
@@ -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+=             -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}



Home | Main Index | Thread Index | Old Index