Add workaround for clang link failure in elf/tst-unique4

This commit is contained in:
Stan Shebs 2018-09-26 08:06:14 -07:00 committed by Fangrui Song
parent b2d69ea7ac
commit acf11f4420

View File

@ -1294,6 +1294,11 @@ $(objpfx)tst-unique2.out: $(objpfx)tst-unique2mod2.so
$(objpfx)tst-unique3: $(libdl) $(objpfx)tst-unique3lib.so
$(objpfx)tst-unique3.out: $(objpfx)tst-unique3lib2.so
# clang optimization drops seemingly-unused instantiations
ifeq ($(with-clang),yes)
CFLAGS-tst-unique4lib.cc += -O0
endif
$(objpfx)tst-unique4: $(objpfx)tst-unique4lib.so
$(objpfx)tst-nodelete: $(libdl)