From a9568fbd227b42baa31ceca550550b7df792a6e8 Mon Sep 17 00:00:00 2001 From: jeremyd2019 Date: Thu, 9 Sep 2021 21:06:52 -0700 Subject: [PATCH] [Windows] install import library to libdir (#249) import libraries need to go in libdir (`/lib`), while dlls need to be on the PATH so need to be installed to shlibdir (`/bin`) --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 7c99003..0f502a1 100644 --- a/Makefile +++ b/Makefile @@ -96,7 +96,13 @@ install-static: libopenlibm.a install-shared: libopenlibm.$(OLM_MAJOR_MINOR_SHLIB_EXT) mkdir -p $(DESTDIR)$(shlibdir) +ifeq ($(OS), WINNT) + mkdir -p $(DESTDIR)$(libdir) + cp -RpP -f libopenlibm.*$(SHLIB_EXT) $(DESTDIR)$(shlibdir)/ + cp -RpP -f libopenlibm.*$(SHLIB_EXT).a $(DESTDIR)$(libdir)/ +else cp -RpP -f libopenlibm.*$(SHLIB_EXT)* $(DESTDIR)$(shlibdir)/ +endif install-pkgconfig: openlibm.pc mkdir -p $(DESTDIR)$(pkgconfigdir)