1044: Check for -rdynamic with libraries.
commit49f529a582077895f3a6b3236294f6ed55e9896d
authorKalle Olavi Niemitalo <kon@iki.fi>
Sun, 17 Aug 2008 19:08:36 +0000 (17 22:08 +0300)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Wed, 3 Sep 2008 23:41:46 +0000 (4 02:41 +0300)
treeea10d9acd9b7101d31889fb810fe830c0312032a
parent64f0f6e7a87fa07da8bf8bf0200c289d1c2ae596
1044: Check for -rdynamic with libraries.

With Sun Studio 11 on Solaris 9, we get "cc: Warning: illegal option
-dynamic"; then, cc proceeds anyway, but the option can prevent the
linker from finding the libraries listed in -l operands.  To detect
this, move the -rdynamic check in configure.in down to a place where
the libraries have already been added to $LDFLAGS.  So if -rdynamic
interferes with the search for libraries, ELinks won't use it.

Merely moving the test would also change the location of -rdynamic in
$LDFLAGS.  Counteract that by making the test add -rdynamic to the
beginning of $LDFLAGS, rather than to the end.  This may make the test
more reliable on Solaris.
NEWS
configure.in