mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-18 14:16:00 +08:00
* ltconfig.in (sunos4*, without_gnu_ld, with_gcc, archive_cmds):
add -fPIC, because libgcc is multilibbed, and we want the PIC version of it for shared libraries, otherwise ld complains
This commit is contained in:
parent
ca91b60c01
commit
8d22e74b08
@ -1,5 +1,9 @@
|
||||
1999-01-20 Alexandre Oliva <oliva@dcc.unicamp.br>
|
||||
|
||||
* ltconfig.in (sunos4*, without_gnu_ld, with_gcc, archive_cmds):
|
||||
add -fPIC, because libgcc is multilibbed, and we want the PIC
|
||||
version of it for shared libraries, otherwise ld complains
|
||||
|
||||
* demo/dlmain.c (main): add missing const to declaration of name
|
||||
|
||||
* libltdl/ltdl.c (find_module): remove the libdir argument, and
|
||||
|
@ -1325,7 +1325,8 @@ else
|
||||
sunos4*)
|
||||
# Why do we need -Bstatic? To avoid inter-library dependencies, maybe...
|
||||
if test "$with_gcc" = yes; then
|
||||
archive_cmds='$CC -shared ${wl}-Bstatic -o $lib $libobjs $deplibs'
|
||||
# Use -fPIC here because libgcc is multilibbed
|
||||
archive_cmds='$CC -shared ${wl}-Bstatic -fPIC -o $lib $libobjs $deplibs'
|
||||
else
|
||||
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs'
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user