From: Alexandre Oliva Date: Thu, 11 Mar 1999 22:38:51 +0000 (+0000) Subject: * ltmain.in: FreeBSD bug that needs symbol table compiled with X-Git-Tag: release-1-2f~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16d8b076152fea1ae03eb26772bafeefa68ea0f5;p=thirdparty%2Flibtool.git * ltmain.in: FreeBSD bug that needs symbol table compiled with -fPIC is fixed in release 3.1; use it only for 2.* and 3.0 --- diff --git a/ChangeLog b/ChangeLog index 3c4b726df..1c1455b69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-03-11 Alexandre Oliva + + * ltmain.in: FreeBSD bug that needs symbol table compiled with + -fPIC is fixed in release 3.1; use it only for 2.* and 3.0 + 1999-03-11 Thomas Tanner * ltmain.in: when building a library it doesn't make diff --git a/ltmain.in b/ltmain.in index 98a061a3b..3a4932745 100644 --- a/ltmain.in +++ b/ltmain.in @@ -2446,11 +2446,12 @@ static const void *lt_preloaded_setup() { pic_flag_for_symtable= case "$host" in - # compiling the symbol table file with pic_flag works around a - # FreeBSD bug that causes programs to crash when -lm is linked - # before any other PIC object. But we must not use pic_flag - # when linking with -static. - *-*-freebsd*) + # compiling the symbol table file with pic_flag works around + # a FreeBSD bug that causes programs to crash when -lm is + # linked before any other PIC object. But we must not use + # pic_flag when linking with -static. The problem exists in + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. + *-*-freebsd2*|*-*-freebsd3.0*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;