From acf11f442023133bd885aa3f6fdc02eef4112557 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Wed, 26 Sep 2018 08:06:14 -0700 Subject: [PATCH] Add workaround for clang link failure in elf/tst-unique4 --- elf/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/elf/Makefile b/elf/Makefile index b9ea53932a2..3009c0d316c 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -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) -- 2.47.2