From 397e20b0f322748708e37e09d7ed59ef3155df80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 1 Dec 2014 12:41:40 +0200 Subject: [PATCH] Install the import library via the EXTRA_LIB mechanism on mingw as well Prior to 3f69873c99, there already was a mechanism for installing the import library, used for the MSVC builds. Use that for mingw as well, instead of adding more hardcoded rules. --- Makefile | 4 ---- build/platform-mingw_nt.mk | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index cb919fe3..1517b426 100644 --- a/Makefile +++ b/Makefile @@ -234,10 +234,6 @@ install-shared: $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) install-headers $ if [ -L $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) ]; then \ cp -a $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) $(SHAREDLIB_DIR); \ fi - if [ -f $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX).a ]; then \ - install -m 644 $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX).a \ - $(PREFIX)/lib; \ - fi mkdir -p $(PREFIX)/lib/pkgconfig install -m 444 $(PROJECT_NAME).pc $(PREFIX)/lib/pkgconfig ifneq ($(EXTRA_LIBRARY),) diff --git a/build/platform-mingw_nt.mk b/build/platform-mingw_nt.mk index 96c3b246..11fb504a 100644 --- a/build/platform-mingw_nt.mk +++ b/build/platform-mingw_nt.mk @@ -2,7 +2,8 @@ include $(SRC_PATH)build/x86-common.mk SHAREDLIB_DIR = $(PREFIX)/bin SHAREDLIBSUFFIX = dll SHAREDLIBSUFFIXVER=$(SHAREDLIBSUFFIX) -SHLDFLAGS = -Wl,--out-implib,$(LIBPREFIX)$(PROJECT_NAME).dll.a +EXTRA_LIBRARY=$(LIBPREFIX)$(PROJECT_NAME).dll.a +SHLDFLAGS = -Wl,--out-implib,$(EXTRA_LIBRARY) CFLAGS += -MMD -MP LDFLAGS += ifeq ($(ENABLE64BIT), Yes)