[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Oddity about generating shared libs
- From: Reuben Thomas <rrt@...>
- Date: Thu, 29 Jan 2004 00:49:07 +0100 (CET)
I've just come across an oddity in making shared libs with gcc which
AFAICS amounts to a bug in the default Lua Makefile.
If I use ldd on a dynamic library built with the default Makefile it says:
statically linked
This seems to be caused by the fact that the default Makefile uses ld as
the linker. It should use gcc, which gives the expected result. In fact,
as someone pointed out earlier, it should really use gcc $(MYCFLAGS) (or
$(CC) $(MYCFLAGS), but given it's already Linux-gcc-specific there's
little point), so that if you've added -fPIC, that gets used with the
linker, as advised in the gcc manpage.
Maybe this could go into the "real" 5.0.1?
--
http://www.mupsych.org/~rrt/
frog, n. a prince waiting for the right kiss