File: enable_build_envvar

package info (click to toggle)
pari 2.17.3-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 24,508 kB
  • sloc: ansic: 281,184; sh: 861; perl: 420; yacc: 214; makefile: 162; f90: 88
file content (21 lines) | stat: -rw-r--r-- 751 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Change Configure to honor CFLAGS.
 Change the Configure system to use the value of the environment variables
 CFLAGS (when set) so that we can set it in debian/rules.

Author: Bill Allombert <ballombe@debian.org>
Last-Update: 2011-06-21
Index: pari-2.15.4/config/get_cc
===================================================================
--- pari-2.15.4.orig/config/get_cc
+++ pari-2.15.4/config/get_cc
@@ -146,7 +146,9 @@ case "$optimization" in
   gcov)      suffix=.gcov; cflags="$GCOVFLAGS $cflags";;
 esac
 
-CFLAGS="$cflags $CFLAGS $CPPFLAGS"
+if test "${CFLAGS+set}" != "set" ; then
+  CFLAGS="$cflags $CFLAGS $CPPFLAGS"
+fi
 if test "$fastread" != yes; then
   echo $n ..."With which flags ? $c"
   dflt=$CFLAGS; rep=; . ./myread