Skip to content

Commit a9568fb

Browse files
authored
[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`)
1 parent f88e52a commit a9568fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,13 @@ install-static: libopenlibm.a
9696

9797
install-shared: libopenlibm.$(OLM_MAJOR_MINOR_SHLIB_EXT)
9898
mkdir -p $(DESTDIR)$(shlibdir)
99+
ifeq ($(OS), WINNT)
100+
mkdir -p $(DESTDIR)$(libdir)
101+
cp -RpP -f libopenlibm.*$(SHLIB_EXT) $(DESTDIR)$(shlibdir)/
102+
cp -RpP -f libopenlibm.*$(SHLIB_EXT).a $(DESTDIR)$(libdir)/
103+
else
99104
cp -RpP -f libopenlibm.*$(SHLIB_EXT)* $(DESTDIR)$(shlibdir)/
105+
endif
100106

101107
install-pkgconfig: openlibm.pc
102108
mkdir -p $(DESTDIR)$(pkgconfigdir)

0 commit comments

Comments
 (0)