Add -ldl to POSTSTAGE1_LDFLAGS
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 29 Nov 2013 19:06:55 +0000 (11:06 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 29 Nov 2013 19:06:55 +0000 (11:06 -0800)
2013-11-19  Marek Polacek  <polacek@redhat.com>

* bootstrap-ubsan.mk (POSTSTAGE1_LDFLAGS): Add -ldl.

config/ChangeLog
config/bootstrap-ubsan.mk

index 58253031e06a1c3be24c7f4de35a76bba93196e2..6434f337ae92ca4562e3cce5a4be9fb310df7625 100644 (file)
@@ -1,3 +1,7 @@
+2013-11-19  Marek Polacek  <polacek@redhat.com>
+
+       * bootstrap-ubsan.mk (POSTSTAGE1_LDFLAGS): Add -ldl.
+
 2013-11-18  Jan Hubicka  <jh@suse.cz>
 
        * bootstrap-lto.mk: Use -ffat-lto-objects.
index 2d21e832e217a968e6aaf2a749a18352a0fb2d28..0cd8b172b0fcefc94223f3f29af080eeab6cfc55 100644 (file)
@@ -2,6 +2,6 @@
 
 STAGE2_CFLAGS += -fsanitize=undefined
 STAGE3_CFLAGS += -fsanitize=undefined
-POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -lpthread \
+POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -lpthread -ldl \
                      -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \
                      -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs