* 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 <obrien@freebsd.org>
From-SVN: r42461
+2001-05-22 Loren J. Rittle <ljrittle@acm.org>
+ David O'Brien <obrien@freebsd.org>
+
+ * 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 <rth@redhat.com>
* crtstuff.c (__register_frame_info_bases): Declare.
# Compile crtbeginS.o and crtendS.o with pic.
CRTSTUFF_T_CFLAGS_S = -fPIC
+
+# Compile libgcc.a with pic.
+TARGET_LIBGCC2_CFLAGS += -fPIC
# This is currently needed to compile libgcc2 for threads support
-TARGET_LIBGCC2_CFLAGS=-pthread
-#T_CFLAGS=-pthread
-#T_CPPFLAGS=-pthread
+TARGET_LIBGCC2_CFLAGS += -pthread