Allow -dead_strip linking on platforms with .subsections_via_symbols
[ghc.git] / testsuite / tests / llvm / should_run / subsections_via_symbols / Makefile
1 TOP=../../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 # pass -dead_strip to the linker.
6 HCFLAGS = -O2 -fllvm
7 HCINC = $(TOP)/../includes
8
9 .PHONY: subsections_via_symbols_test
10 subsections_via_symbols_test:
11 '$(TEST_HC)' -o SubsectionsViaSymbols.o SubsectionsViaSymbols.hs $(HCFLAGS) -staticlib
12 '$(TEST_HC)' -o subsections_via_symbols SubsectionsViaSymbols subsections_via_symbols.m $(HCFLAGS) -optl -dead_strip -no-hs-main
13 ./subsections_via_symbols