summaryrefslogtreecommitdiff
path: root/src/Makefile.shlib
diff options
context:
space:
mode:
authorPeter Eisentraut2015-01-19 03:36:40 +0000
committerPeter Eisentraut2015-01-19 03:36:40 +0000
commitcb4a3b0410d3ba19e4524fceee99fb9b10a5e08a (patch)
tree5c487bf4c83df4b28dbb749f68e4ef2756738e25 /src/Makefile.shlib
parent75df6dc083f7a989697b5002a421fb204f2eeddb (diff)
Install shared libraries also in bin on cygwin, mingw
This was previously only done for libpq, not it's done for all shared libraries. Reviewed-by: Michael Paquier <[email protected]>
Diffstat (limited to 'src/Makefile.shlib')
-rw-r--r--src/Makefile.shlib7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index 674fe7e1d5e..739033f78e8 100644
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -486,6 +486,9 @@ endif
endif # not win32
endif # not cygwin
endif # not aix
+ifneq (,$(findstring $(PORTNAME),win32 cygwin))
+ $(INSTALL_SHLIB) $< '$(DESTDIR)$(bindir)/$(shlib)'
+endif
else # no soname
$(INSTALL_SHLIB) $< '$(DESTDIR)$(pkglibdir)/$(shlib)'
endif
@@ -493,7 +496,7 @@ endif
installdirs-lib:
ifdef soname
- $(MKDIR_P) '$(DESTDIR)$(libdir)' '$(DESTDIR)$(pkgconfigdir)'
+ $(MKDIR_P) '$(DESTDIR)$(libdir)' '$(DESTDIR)$(pkgconfigdir)' $(if $(findstring $(PORTNAME),win32 cygwin),'$(DESTDIR)$(bindir)')
else
$(MKDIR_P) '$(DESTDIR)$(pkglibdir)'
endif
@@ -509,7 +512,7 @@ ifdef soname
rm -f '$(DESTDIR)$(libdir)/$(stlib)'
rm -f '$(DESTDIR)$(libdir)/$(shlib_bare)' \
'$(DESTDIR)$(libdir)/$(shlib_major)' \
- '$(DESTDIR)$(libdir)/$(shlib)' \
+ '$(DESTDIR)$(libdir)/$(shlib)' $(if $(findstring $(PORTNAME),win32 cygwin),'$(DESTDIR)$(bindir)/$(shlib)') \
'$(DESTDIR)$(pkgconfigdir)/lib$(NAME).pc'
else # no soname
rm -f '$(DESTDIR)$(pkglibdir)/$(shlib)'