]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (sunos4*, without_gnu_ld, with_gcc, archive_cmds):
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Wed, 20 Jan 1999 17:47:48 +0000 (17:47 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 20 Jan 1999 17:47:48 +0000 (17:47 +0000)
  add -fPIC, because libgcc is multilibbed, and we want the PIC
  version of it for shared libraries, otherwise ld complains

ChangeLog
ltconfig.in

index aa7ef04547e19d9f85b935b69d4bc14d5d38f6a4..845e0c81310e6c0e7e95b62f8357043bbd8773e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index de77eb99eda54ef6e5d5cd66e39b4c2b20ec7a92..c3c155a84954c383efb6552d43b35e428239d0ec 100755 (executable)
@@ -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