Lines 106-124
Link Here
|
106 |
include="-I$pkgincludedir" |
106 |
include="-I$pkgincludedir" |
107 |
|
107 |
|
108 |
# Remove some options that a client doesn't have to care about |
108 |
# Remove some options that a client doesn't have to care about |
109 |
# FIXME until we have a --cxxflags, we need to remove -Xa |
109 |
tmpcflags="" |
110 |
# and -xstrconst to make --cflags usable for Sun Forte C++ |
110 |
for f in $cflags |
111 |
for remove in DDBUG_OFF DSAFEMALLOC USAFEMALLOC DSAFE_MUTEX \ |
|
|
112 |
DPEDANTIC_SAFEMALLOC DUNIV_MUST_NOT_INLINE DFORCE_INIT_OF_VARS \ |
113 |
DEXTRA_DEBUG DHAVE_purify O 'O[0-9]' 'xO[0-9]' 'W[-A-Za-z]*' \ |
114 |
Xa xstrconst "xc99=none" \ |
115 |
unroll2 ip mp restrict |
116 |
do |
111 |
do |
117 |
# The first option we might strip will always have a space before it because |
112 |
case "${f}" in |
118 |
# we set -I$pkgincludedir as the first option |
113 |
-DDBUG_OFF) f="" ;; |
119 |
cflags=`echo "$cflags"|sed -e "s/ -$remove */ /g"` |
114 |
-DSAFEMALLOC) f="" ;; |
|
|
115 |
-USAFEMALLOC) f="" ;; |
116 |
-DSAFE_MUTEX) f="" ;; |
117 |
-DPEDANTIC_SAFEMALLOC) f="" ;; |
118 |
-DUNIV_MUST_NOT_INLINE) f="" ;; |
119 |
-DFORCE_INIT_OF_VARS) f="" ;; |
120 |
-DEXTRA_DEBUG) f="" ;; |
121 |
-DHAVE_purify) f="" ;; |
122 |
-[ID]*) tmpcflags="${tmpcflags} ${f}" ;; |
123 |
-[Ll]*) |
124 |
libs="${libs} ${f}" |
125 |
libs_r="${libs_r} ${f}" |
126 |
embedded_libs="${embedded_libs} ${f}" |
127 |
;; |
128 |
esac |
120 |
done |
129 |
done |
121 |
cflags=`echo "$cflags"|sed -e 's/ *\$//'` |
130 |
cflags="${tmpcflags# }" |
122 |
|
131 |
|
123 |
# Same for --libs(_r) |
132 |
# Same for --libs(_r) |
124 |
for remove in lmtmalloc static-libcxa i-static |
133 |
for remove in lmtmalloc static-libcxa i-static |