[mathicgb] 19/393: Updated make-Makefile to support targets setting LDFLAGS which was necessary to support profile builds correctly.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Apr 3 15:58:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository mathicgb.

commit e5f0f9760225c0deb1d8233d47a4f61fa483e708
Author: Bjarke Hammersholt Roune <bjarkehr.code at gmail.com>
Date:   Tue Aug 7 07:19:05 2012 -0400

    Updated make-Makefile to support targets setting LDFLAGS which was necessary to support profile builds correctly.
---
 build/setup/make-Makefile.sh | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/build/setup/make-Makefile.sh b/build/setup/make-Makefile.sh
index 088dffb..a3fdaa1 100755
--- a/build/setup/make-Makefile.sh
+++ b/build/setup/make-Makefile.sh
@@ -1,6 +1,6 @@
 #!/bin/env bash
 
-mildWarn="-Wall -Wextra"
+mildWarn="" #-Wall -Wextra"
 
 #############################################
 ################## projects #################
@@ -34,6 +34,7 @@ targetsName+=("rel");
 targetsDescription+=("Release build. Optimized, no debug symbols, no asserts.");
 targetsCPPFLAGS+=("-O2");
 targetsCXXFLAGS+=("");
+targetsLDFLAGS+=("");
 targetsMakeArgs+=("");
 targetsDefault+=("yes");
 
@@ -43,6 +44,7 @@ targetsName+=("relass");
 targetsDescription+=("Optimized build with asserts. No debug symbols.");
 targetsCPPFLAGS+=("-O2 -DMEMTAILOR_DEBUG -DMATHIC_DEBUG -DMATHICGB_DEBUG $mildWarn");
 targetsCXXFLAGS+=("");
+targetsLDFLAGS+=("");
 targetsMakeArgs+=("");
 targetsDefault+=("yes");
 
@@ -52,6 +54,7 @@ targetsName+=("deb");
 targetsDescription+=("Debug build with asserts. Not optimized.");
 targetsCPPFLAGS+=("-g -DMEMTAILOR_DEBUG -DMATHIC_DEBUG -DMATHICGB_DEBUG $mildWarn");
 targetsCXXFLAGS+=("");
+targetsLDFLAGS+=("");
 targetsMakeArgs+=("");
 targetsDefault+=("yes");
 
@@ -61,6 +64,7 @@ targetsName+=("debnoass");
 targetsDescription+=("Debug build without asserts. Not optimized.");
 targetsCPPFLAGS+=("-g $mildWarn");
 targetsCXXFLAGS+=("");
+targetsLDFLAGS+=("");
 targetsMakeArgs+=("");
 targetsDefault+=("no");
 
@@ -70,15 +74,17 @@ targetsName+=("pro");
 targetsDescription+=("Profile build with optimization and no asserts.");
 targetsCPPFLAGS+=("-g -pg -O2 $mildWarn");
 targetsCXXFLAGS+=("");
+targetsLDFLAGS+=("-pg");
 targetsMakeArgs+=("");
 targetsDefault+=("no");
 
-# profile profile with asserts
-proIndex=${#targetsName[@]};
-targetsName+=("pro");
+# profile with asserts
+proassIndex=${#targetsName[@]};
+targetsName+=("proass");
 targetsDescription+=("Profile build with optimization and asserts.");
-targetsCPPFLAGS+=("-g -pg -O2 $mildWarn");
+targetsCPPFLAGS+=("-g -pg -O2 -DMEMTAILOR_DEBUG -DMATHIC_DEBUG -DMATHICGB_DEBUG $mildWarn");
 targetsCXXFLAGS+=("");
+targetsLDFLAGS+=("-pg");
 targetsMakeArgs+=("");
 targetsDefault+=("no");
 
@@ -96,6 +102,7 @@ targetsCPPFLAGS+=("-Wall -Wextra -Wno-uninitialized -Wno-unused-parameter\
   -Wno-invalid-offsetof -Winvalid-pch -Wlong-long \
   -Wdisabled-optimization -D DEBUG -Werror");
 targetsCXXFLAGS+=("");
+targetsLDFLAGS+=("");
 targetsMakeArgs+=("");
 targetsDefault+=("no");
 
@@ -121,6 +128,7 @@ function makeHelpComment {
     echo "#   Target: ${targetsName[i]}. ${targetsDescription[i]}";
     echo "#     CPPFLAGS=${targetsCPPFLAGS[i]}";
     echo "#     CXXFLAGS=${targetsCXXFLAGS[i]}";
+    echo "#     LDFLAGS=${targetsLDFLAGS[i]}";
     echo "#     makeArgs=${targetsMakeArgs[i]}";
     echo "#     buildsByDefault=${targetsDefault[i]}";
   done
@@ -144,6 +152,7 @@ function makeTarget {
   targetName="${targetsName[targetIndex]}";
   targetCPPFLAGS="${targetsCPPFLAGS[targetIndex]}";
   targetCXXFLAGS="${targetsCXXFLAGS[targetIndex]}";
+  targetLDFLAGS="${targetsLDFLAGS[targetIndex]}";
   targetMakeArgs="${targetsMakeArgs[targetIndex]}";
   targetDefault="${targetsDefault[targetIndex]}";
 
@@ -164,6 +173,7 @@ function makeTarget {
   echo $'\t'"  export PKG_CONFIG_PATH=\"$prefix/lib/pkgconfig\"; \\";
   echo $'\t'"  export CXXFLAGS=\"$targetCXXFLAGS\"; \\";
   echo $'\t'"  export CPPFLAGS=\"$targetCPPFLAGS\"; \\";
+  echo $'\t'"  export LDFLAGS=\"$targetLDFLAGS\"; \\";
   echo $'\t'"  ../configure --prefix=\"$prefix\"; \\"
   echo $'\t'"  make $targetMakeArgs install; \\"
   echo $'\t'");"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mathicgb.git



More information about the debian-science-commits mailing list