|
Lines 49-54
Link Here
|
| 49 |
#### append-ldflags #### |
49 |
#### append-ldflags #### |
| 50 |
# Add extra flags to your current LDFLAGS |
50 |
# Add extra flags to your current LDFLAGS |
| 51 |
# |
51 |
# |
|
|
52 |
#### filter-ldflags <flags> #### |
| 53 |
# Remove particular flags from LDFLAGS |
| 54 |
# Matches only complete flags |
| 55 |
# |
| 52 |
#### etexec-flags #### |
56 |
#### etexec-flags #### |
| 53 |
# hooked function for hardened-gcc that appends |
57 |
# hooked function for hardened-gcc that appends |
| 54 |
# -yet_exec {C,CXX,LD}FLAGS when hardened-gcc is installed |
58 |
# -yet_exec {C,CXX,LD}FLAGS when hardened-gcc is installed |
|
Lines 296-301
Link Here
|
| 296 |
return 0 |
300 |
return 0 |
| 297 |
} |
301 |
} |
| 298 |
|
302 |
|
|
|
303 |
filter-ldflags() { |
| 304 |
# we do this fancy spacing stuff so as to not filter |
| 305 |
# out part of a flag ... we want flag atoms ! :D |
| 306 |
LDFLAGS=" ${LDFLAGS} " |
| 307 |
for x in "$@" ; do |
| 308 |
LDFLAGS="${LDFLAGS// ${x} / }" |
| 309 |
done |
| 310 |
LDFLAGS="${LDFLAGS:1:${#LDFLAGS}-2}" |
| 311 |
return 0 |
| 312 |
} |
| 313 |
|
| 299 |
etexec-flags() { |
314 |
etexec-flags() { |
| 300 |
has_version sys-devel/hardened-gcc |
315 |
has_version sys-devel/hardened-gcc |
| 301 |
if [ $? == 0 ] ; then |
316 |
if [ $? == 0 ] ; then |