This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[ubsan] Add -lpthread to POSTSTAGE1_LDFLAGS
- From: Marek Polacek <polacek at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 14 Aug 2013 16:05:10 +0200
- Subject: [ubsan] Add -lpthread to POSTSTAGE1_LDFLAGS
When doing bootstrap with ubsan, some files require libpthread to be
linked. This patch adds -lpthread into POSTSTAGE1_LDFLAGS for the
bootstrap-ubsan.
Applying to the ubsan branch.
2013-08-14 Marek Polacek <polacek@redhat.com>
* bootstrap-ubsan.mk (POSTSTAGE1_LDFLAGS): Add -lpthread.
--- gcc/bootstrap-ubsan.mk.mp 2013-08-14 16:01:34.752485016 +0200
+++ gcc/bootstrap-ubsan.mk 2013-08-14 16:01:50.381541011 +0200
@@ -2,6 +2,6 @@
STAGE2_CFLAGS += -fsanitize=undefined
STAGE3_CFLAGS += -fsanitize=undefined
-POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan \
+POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -lpthread \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs
Marek