]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Ensure that gcc on HPsUX uses -fPIC, or else
authorPavel Roskin <pavel_roskin@geocities.com>
Thu, 29 Jul 1999 23:28:06 +0000 (23:28 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 29 Jul 1999 23:28:06 +0000 (23:28 +0000)
initialised structures are sometimes emitted in the code section.

ChangeLog
ltmain.in

index 4be4e7d97bba989d1caf2a95c39e5ea9d080f0c2..248eca0e75d1c8fb02d78fff4385a4373bf611ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-07-30  Pavel Roskin  <pavel_roskin@geocities.com>
+
+       * ltmain.in: Ensure that gcc on HPsUX uses -fPIC, or else
+       initialised structures are sometimes emitted in the code section.
+       
 1999-07-30  Mumit Khan  <khan@xraylith.wisc.edu>
 
        * ltconfig.in:  Read line at a time to avoid tokenisation by
index 0178440007d23cd5540c89a1a21c5ecb5fdec4d8..89de6c2d02649108dcd48027c0d5f103a792ae1e 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -3412,6 +3412,11 @@ static const void *lt_preloaded_setup() {
            case "$compile_command " in
            *" -static "*) ;;
            *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
+           esac;;
+         *-*-hpux*)
+           case "$compile_command " in
+           *" -static "*) ;;
+           *) pic_flag_for_symtable=" $pic_flag -DPIC";;
            esac
          esac