LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File add-mysqllib-soversion.patch of Package postgresql96-fdw-mysql (Project home:dddh:branches:home:vjt:ifad)

--- Makefile.orig	2016-09-19 11:09:46.559372394 +0200
+++ Makefile	2016-09-19 11:12:21.757443767 +0200
@@ -39,7 +39,10 @@
 DLSUFFIX = .so
 endif
 
-PG_CPPFLAGS += -D _MYSQL_LIBNAME=\"lib$(MYSQL_LIB)$(DLSUFFIX)\"
+PKGLIBDIR = $(shell $(MYSQL_CONFIG) --variable=pkglibdir)
+MYSQL_LIBNAME=$(shell readlink "$(PKGLIBDIR)/lib$(MYSQL_LIB)$(DLSUFFIX)")
+
+PG_CPPFLAGS += -D _MYSQL_LIBNAME=\"$(MYSQL_LIBNAME)\"
 
 ifdef USE_PGXS
 PG_CONFIG = pg_config