Skip to content

Commit 3aa9776

Browse files
committed
Add to CPPFLAGS/CFLAGS in template files, don't over-ride them.
1 parent b82323e commit 3aa9776

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

src/template/aix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
if test "$GCC" != yes ; then
22
case $host_os in
33
aix3.2.5 | aix4.1*)
4-
CFLAGS="-O -qmaxmem=16384 -qsrcmsg"
4+
CFLAGS="$CFLAGS -O -qmaxmem=16384 -qsrcmsg"
55
;;
66
*)
7-
CFLAGS="-O2 -qmaxmem=16384 -qsrcmsg -qlonglong"
7+
CFLAGS="$CFLAGS -O2 -qmaxmem=16384 -qsrcmsg -qlonglong"
88
;;
99
esac
1010
fi

src/template/freebsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
case $host_cpu in
2-
alpha*) CFLAGS="-O";; # alpha has problems with -O2
2+
alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2
33
esac

src/template/hpux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED"
1+
CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
22

33
if test "$GCC" != yes ; then
44
CC="$CC -Ae"
5-
CFLAGS="+O2"
5+
CFLAGS="$CFLAGS +O2"
66
fi
77

88
# Pick right test-and-set (TAS) code. We need out-of-line assembler

src/template/linux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
2-
CPPFLAGS="-D_GNU_SOURCE"
2+
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"

src/template/osf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
if test "$GCC" != yes ; then
22
CC="$CC -std"
3-
CFLAGS="-O -ieee"
3+
CFLAGS="$CFLAGS -O -ieee"
44
fi

src/template/solaris

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
if test "$GCC" != yes ; then
22
CC="$CC -Xa" # relaxed ISO C mode
3-
CFLAGS="-O -v" # -v is like gcc -Wall
3+
CFLAGS="$CFLAGS -O -v" # -v is like gcc -Wall
44
fi
55

66
# Pick right test-and-set (TAS) code. We need out-of-line assembler

src/template/univel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
CFLAGS="-v -O -K i486,host,inline,loop_unroll -Dsvr4"
1+
CFLAGS="$CFLAGS -v -O -K i486,host,inline,loop_unroll -Dsvr4"
22
LIBS="-lc89"

src/template/unixware

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ void g(void){
1313
__EOF__
1414

1515
if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then
16-
CFLAGS="-O -Kinline"
16+
CFLAGS="$CFLAGS -O -Kinline"
1717
else
18-
CFLAGS="-O -Kinline,no_host"
18+
CFLAGS="$CFLAGS -O -Kinline,no_host"
1919
fi
2020
rm -f conftest.*
2121

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy