|
From: <sv...@va...> - 2013-04-17 19:07:51
|
mjw 2013-04-17 20:11:05 +0100 (Wed, 17 Apr 2013)
New Revision: 13371
Log:
Fix -Ttext-segment configure check.
Explicitly test together with -static -nodefaultlibs -nostartfiles to mimic
what the tools linking script does. At least on s390 the test might fail for
a non-static AC_LINK, while it does work when using those other flags too.
Modified files:
trunk/configure.in
Modified: trunk/configure.in (+2 -2)
===================================================================
--- trunk/configure.in 2013-04-17 16:23:22 +01:00 (rev 13370)
+++ trunk/configure.in 2013-04-17 20:11:05 +01:00 (rev 13371)
@@ -1718,10 +1718,10 @@
AC_MSG_CHECKING([if the linker accepts -Wl,-Ttext-segment])
safe_CFLAGS=$CFLAGS
-CFLAGS="-Wl,-Ttext-segment=$valt_load_address_pri_norml"
+CFLAGS="-static -nodefaultlibs -nostartfiles -Wl,-Ttext-segment=$valt_load_address_pri_norml"
AC_LINK_IFELSE(
-[AC_LANG_PROGRAM([ ], [return 0;])],
+[AC_LANG_SOURCE([int _start () { return 0; }])],
[
linker_using_t_text="no"
AC_SUBST([FLAG_T_TEXT], ["-Ttext-segment"])
|