From: Loren J. Rittle Date: Tue, 22 May 2001 19:10:18 +0000 (+0000) Subject: t-freebsd (TARGET_LIBGCC2_CFLAGS): Add -fPIC. X-Git-Tag: prereleases/libstdc++-3.0.95~4267 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28b6b31799b98a58f7407a3135c506f63b3a0df3;p=thirdparty%2Fgcc.git t-freebsd (TARGET_LIBGCC2_CFLAGS): Add -fPIC. * config/t-freebsd (TARGET_LIBGCC2_CFLAGS): Add -fPIC. * config/t-freebsd-thread (TARGET_LIBGCC2_CFLAGS): Add -pthread instead setting macro. Co-Authored-By: David O'Brien From-SVN: r42461 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 148f682ea422..5934076ee0b3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2001-05-22 Loren J. Rittle + David O'Brien + + * config/t-freebsd (TARGET_LIBGCC2_CFLAGS): Add -fPIC. + * config/t-freebsd-thread (TARGET_LIBGCC2_CFLAGS): Add + -pthread instead setting macro. + 2001-05-22 Richard Henderson * crtstuff.c (__register_frame_info_bases): Declare. diff --git a/gcc/config/t-freebsd b/gcc/config/t-freebsd index 1360ea0e8113..da9c6429acd0 100644 --- a/gcc/config/t-freebsd +++ b/gcc/config/t-freebsd @@ -3,3 +3,6 @@ STMP_FIXPROTO = # Compile crtbeginS.o and crtendS.o with pic. CRTSTUFF_T_CFLAGS_S = -fPIC + +# Compile libgcc.a with pic. +TARGET_LIBGCC2_CFLAGS += -fPIC diff --git a/gcc/config/t-freebsd-thread b/gcc/config/t-freebsd-thread index 06315c803b06..6e5c64f78cfa 100644 --- a/gcc/config/t-freebsd-thread +++ b/gcc/config/t-freebsd-thread @@ -1,4 +1,2 @@ # This is currently needed to compile libgcc2 for threads support -TARGET_LIBGCC2_CFLAGS=-pthread -#T_CFLAGS=-pthread -#T_CPPFLAGS=-pthread +TARGET_LIBGCC2_CFLAGS += -pthread