pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/cross/avr-gcc Reset CFLAGS/CXXFLAGS at the end and add...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1338d3fa0640
branches:  trunk
changeset: 639605:1338d3fa0640
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Sep 19 08:30:52 2014 +0000

description:
Reset CFLAGS/CXXFLAGS at the end and add CPPFLAGS to the list.
Fixes build on NetBSD where native unwind.h is picked up otherwise.

diffstat:

 cross/avr-gcc/Makefile |  14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r 72dc59a5c3a5 -r 1338d3fa0640 cross/avr-gcc/Makefile
--- a/cross/avr-gcc/Makefile    Fri Sep 19 07:05:24 2014 +0000
+++ b/cross/avr-gcc/Makefile    Fri Sep 19 08:30:52 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2014/08/29 04:26:46 mef Exp $
+# $NetBSD: Makefile,v 1.36 2014/09/19 08:30:52 joerg Exp $
 
 DISTNAME=              gcc-4.8.3
 PKGNAME=               ${DISTNAME:C/^/avr-/}
@@ -31,12 +31,9 @@
 
 MAKE_ENV+=             MACHINE_ARCH=avr
 MAKE_ENV+=             SHELL=${CONFIG_SHELL}
-CFLAGS_FOR_BUILD:=     ${CFLAGS}
 MAKE_ENV+=             CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD:Q}
-CXXFLAGS_FOR_BUILD:=   ${CXXFLAGS}
 MAKE_ENV+=             CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD:Q}
-CFLAGS=                        # empty
-CXXFLAGS=              # empty
+MAKE_ENV+=             CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD:Q}
 
 SUBST_CLASSES+=                sed
 SUBST_FILES.sed=       fixincludes/fixincl.x
@@ -63,3 +60,10 @@
 # mpc is required since gcc-4.5.x
 .include "../../math/mpcomplex/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
+
+CFLAGS_FOR_BUILD:=     ${CFLAGS}
+CXXFLAGS_FOR_BUILD:=   ${CXXFLAGS}
+CPPFLAGS_FOR_BUILD:=   ${CPPFLAGS}
+CFLAGS:=               # empty
+CPPFLAGS:=             # empty
+CXXFLAGS:=             # empty



Home | Main Index | Thread Index | Old Index