0002-Use-C-XX-FLAGS-from-environment-in-configure.patch
738 Bytes
From ba64033006257e072b15b161cf463aae0cc70785 Mon Sep 17 00:00:00 2001
From: Daniel Miranda <danielkza2@gmail.com>
Date: Wed, 8 Apr 2015 17:09:57 -0300
Subject: [PATCH] Use C(XX)FLAGS from environment in configure
---
configure | 3 +++
1 file changed, 3 insertions(+)
diff --git a/configure b/configure
index 3f4ecb3..9a9b436 100755
--- a/configure
+++ b/configure
@@ -529,6 +529,9 @@ rm -f spec.tmp
# make .tmakeconfig
#
touch .tmakeconfig
+[ -n "$CFLAGS" ] && echo "TMAKE_CFLAGS += $CFLAGS" >> .tmakeconfig
+[ -n "$CXXFLAGS" ] && echo "TMAKE_CXXFLAGS += $CXXFLAGS" >> .tmakeconfig
+
if test "$f_shared" = NO; then
if test "$f_platform" = "osf1-cxx" -o "$f_platform" = "irix-n32"; then
cat >> .tmakeconfig <<EOF
--
2.1.0