r5335 - glibc-package/branches/eglibc-2.16/debian
Author: adconrad
Date: 2012-10-26 00:07:31 +0000 (Fri, 26 Oct 2012)
New Revision: 5335
Modified:
glibc-package/branches/eglibc-2.16/debian/rules
Log:
Unset CFLAGS et al from the environment and use our own
Modified: glibc-package/branches/eglibc-2.16/debian/rules
===================================================================
--- glibc-package/branches/eglibc-2.16/debian/rules 2012-10-25 17:58:47 UTC (rev 5334)
+++ glibc-package/branches/eglibc-2.16/debian/rules 2012-10-26 00:07:31 UTC (rev 5335)
@@ -76,6 +76,13 @@
NJOBS := -j $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
endif
+# use the package settings, not the settings from the environment
+define unsetenv
+ unexport $(1)
+ $(1) =
+endef
+$(foreach v, CPPFLAGS CFLAGS CXXFLAGS LDFLAGS, $(if $(filter environment,$(origin $(v))),$(eval $(call unsetenv, $(v)))))
+
# Default setup
EGLIBC_PASSES ?= libc
Reply to: