comparison configure.in @ 54447:eda36a85f9fd

Add -znocombreloc to LDFLAGS if supported.
author Richard M. Stallman <rms@gnu.org>
date Sat, 20 Mar 2004 01:08:08 +0000
parents c85ffeab5831
children 740e62f13379
comparison
equal deleted inserted replaced
54446:72f91438a23b 54447:eda36a85f9fd
1271 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x 1271 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
1272 then 1272 then
1273 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" 1273 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
1274 fi 1274 fi
1275 1275
1276 dnl We need -znocombreloc if we're using a relatively recent GNU ld.
1277 dnl If we can link with the flag, it shouldn't do any harm anyhow.
1278 dnl (Don't use `-z nocombreloc' as -z takes no arg on Irix.)
1279 late_LDFLAGS=$LDFLAGS
1280 LDFLAGS="$LDFLAGS -znocombreloc"
1281
1282 AC_MSG_CHECKING([For -znocombreloc])
1283 AC_LINK_IFELSE([main(){return 0;}],
1284 [AC_MSG_RESULT(yes)],
1285 LDFLAGS=$late_LDFLAGS
1286 [AC_MSG_RESULT(no)])
1287
1276 dnl checks for Unix variants 1288 dnl checks for Unix variants
1277 AC_AIX 1289 AC_AIX
1278 1290
1279 #### Extract some information from the operating system and machine files. 1291 #### Extract some information from the operating system and machine files.
1280 1292