X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=mk%2Fpackage.mk;fp=mk%2Fpackage.mk;h=079e4f6a530c2f466db44329dd88c4b48bd8e703;hp=028600a3e235b0a34b31e463ee36e764d6e33a38;hb=960b35ddc178f6b8af1a8809aecb0a43177abbc8;hpb=421b380e75a04f4e1e8e110b46a4bf872e006f79 diff --git a/mk/package.mk b/mk/package.mk index 028600a..079e4f6 100644 --- a/mk/package.mk +++ b/mk/package.mk @@ -140,6 +140,7 @@ ifeq "$(NON_HS_PACKAGE)" "" SRC_HC_OPTS += -XGenerics endif +ifndef DONT_WANT_STD_LIBRARY ifndef LIBRARY ifeq "$(_way:%_dyn=YES)" "YES" LIBRARY = libHS$(PACKAGE)$(_way:%_dyn=%)-ghc$(ProjectVersion)$(soext) @@ -147,11 +148,13 @@ else LIBRARY = libHS$(PACKAGE)$(_way).a endif endif +endif ifeq "$(WAYS)" "" WAYS = $(GhcLibWays) endif +ifdef LIBRARY all :: $(LIBRARY) # POSSIBLE alternative version using --make: @@ -176,6 +179,7 @@ ifeq "$(DLLized)" "YES" INSTALL_PROGS += $(DLL_NAME) INSTALL_LIBS += $(patsubst %.a,%_imp.a, $(LIBRARY)) endif +endif # The interface files are put inside the $(libdir), since they # might (potentially) be platform specific..