From: Pavel Roskin Date: Thu, 29 Jul 1999 23:28:06 +0000 (+0000) Subject: * ltmain.in: Ensure that gcc on HPsUX uses -fPIC, or else X-Git-Tag: multi-language-fork~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=320240e9998f0b4ca39604cc09a4f82a9e896a77;p=thirdparty%2Flibtool.git * ltmain.in: Ensure that gcc on HPsUX uses -fPIC, or else initialised structures are sometimes emitted in the code section. --- diff --git a/ChangeLog b/ChangeLog index 4be4e7d97..248eca0e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-07-30 Pavel Roskin + + * 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 * ltconfig.in: Read line at a time to avoid tokenisation by diff --git a/ltmain.in b/ltmain.in index 017844000..89de6c2d0 100644 --- 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