Improve fix pkg-config files for static linking
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 6 Sep 2021 07:12:34 +0000 (09:12 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 6 Sep 2021 07:12:34 +0000 (09:12 +0200)
Amend 4c2eab3a0dec2eae40892fb525830a5947a398c7 to link against the
libraries without the "_shlib" suffix, since this is meant for static
linking.

src/Makefile.shlib

index 59779b616f347f124a2b2abdbbfc51f8799ea9cb..cbd9e02b9dd492d7b1229fe1b73b06d06a45e8f3 100644 (file)
@@ -405,7 +405,7 @@ endif # PORTNAME == cygwin || PORTNAME == win32
 # those that point inside the build or source tree.  Use sort to
 # remove duplicates.  Also record the -l flags necessary for static
 # linking, but not those already covered by Requires.private.
-   echo 'Libs.private: $(sort $(filter-out -L.% -L$(top_srcdir)/%,$(filter -L%,$(LDFLAGS) $(SHLIB_LINK)))) $(filter-out $(PKG_CONFIG_REQUIRES_PRIVATE:lib%=-l%),$(filter -l%,$(SHLIB_LINK_INTERNAL) $(SHLIB_LINK)))' >>$@
+   echo 'Libs.private: $(sort $(filter-out -L.% -L$(top_srcdir)/%,$(filter -L%,$(LDFLAGS) $(SHLIB_LINK)))) $(filter-out $(PKG_CONFIG_REQUIRES_PRIVATE:lib%=-l%),$(filter -l%,$(SHLIB_LINK_INTERNAL:%_shlib=%) $(SHLIB_LINK)))' >>$@
 
 
 ##