Lines 65-71
Link Here
|
65 |
# -finline-functions (implied by -O3) leaves strstr() in an infinite loop. |
65 |
# -finline-functions (implied by -O3) leaves strstr() in an infinite loop. |
66 |
# To work around this, we append -fno-inline-functions to CFLAGS |
66 |
# To work around this, we append -fno-inline-functions to CFLAGS |
67 |
# Since GCC 4.7 we also need -fno-ipa-cp-clone (bug #466552) |
67 |
# Since GCC 4.7 we also need -fno-ipa-cp-clone (bug #466552) |
68 |
append-flags -fno-inline-functions -fno-ipa-cp-clone |
68 |
# If it's clang, ignore -fno-ipa-cp-clone, as clang doesn't support this |
|
|
69 |
case "$(tc-getCC)" in |
70 |
"clang") append-flags -fno-inline-functions;; |
71 |
"gcc"|*) append-flags -fno-inline-functions -fno-ipa-cp-clone;; |
72 |
esac |
69 |
|
73 |
|
70 |
sed -e "s:CFLAGS0 = -O:CFLAGS0 = ${CFLAGS}:" \ |
74 |
sed -e "s:CFLAGS0 = -O:CFLAGS0 = ${CFLAGS}:" \ |
71 |
-e "s:LDFLAGS0= -s:LDFLAGS0 = ${LDFLAGS}:" \ |
75 |
-e "s:LDFLAGS0= -s:LDFLAGS0 = ${LDFLAGS}:" \ |