glibc --as-needed changes
H. J. Lu
hjl@lucon.org
Mon Apr 5 16:31:00 GMT 2004
On Mon, Apr 05, 2004 at 10:54:01PM +0930, Alan Modra wrote:
> Hi HJ,
> Your recent --as-needed change to glibc is broken for the case where
> gcc is not built with a shared libgcc. This is often so when
> bootstrapping a new toolchain, as you can't build shared libs without
> crt files, which you don't have until glibc is built.. You need to
> test that both the linker support for --as-needed is available, *and*
> that -lgcc_s can be found.
>
Can you try this patch?
H.J.
-------------- next part --------------
2004-04-05 H.J. Lu <hongjiu.lu@intel.com>
* configure.in: Add -lgcc_s for --as-needed check.
* configure: Regenerated.
--- libc/configure.in.libgcc 2004-04-05 08:54:59.000000000 -0700
+++ libc/configure.in 2004-04-05 09:12:05.000000000 -0700
@@ -1321,7 +1321,7 @@ EOF
int main (void) { return 0; }
EOF
if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
- -shared -o conftest.so conftest.c
+ -shared -o conftest.so conftest.c -lgcc_s
-Wl,--as-needed -nostdlib 1>&AS_MESSAGE_LOG_FD])
then
libc_cv_as_needed=yes
More information about the Libc-alpha
mailing list