summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-04-02 18:39:32 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-04-02 18:39:32 +0000
commit58d18ebfc3cbfce3fd7ae74680a2835f206027bb (patch)
treeaee131954e634493bbae6937b874680f38320746 /m4
parentfbf81d4f5d46e2a5212ccd172df19598508fa4fd (diff)
Correctly avoid -Wl,-O1 when unsupported (fd.o #15026, confirmed to work with a simple C compiler wrapper)
Diffstat (limited to 'm4')
-rw-r--r--m4/linker.m43
1 files changed, 1 insertions, 2 deletions
diff --git a/m4/linker.m4 b/m4/linker.m4
index e6a97cfff..d62257b30 100644
--- a/m4/linker.m4
+++ b/m4/linker.m4
@@ -32,7 +32,6 @@ save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -Wl,-O1"
AC_TRY_LINK([], [], [can_use_linker_opt=yes],
[can_use_linker_opt=no])
-LDFLAGS="$save_LDFLAGS"
AC_MSG_RESULT([$can_use_linker_opt])
if test "x$can_use_linker_opt" = "xno"; then
@@ -44,7 +43,7 @@ AC_ARG_ENABLE(linker-optimisations,
[Disable linker optimisations]),
[if test "x$enable_linker_optimisations" = "xno"; then
[LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O[0-9]*\b//g"`]
-fi], [LDFLAGS="$LDFLAGS -Wl,-O1"])dnl
+fi], [])dnl
])# LINKER_OPTIMISATIONS
# LINKER_VERSION_SCRIPT