From: Mukund Sivaraman Date: Mon, 19 Mar 2012 19:59:11 +0000 (+0530) Subject: bug #1728: Add -avoid-version to LDFLAGS for Python modules (contd.) X-Git-Tag: trac2351_base~226^2~116^2~105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6d6f765fa9faf89c5159374f3ad60066e7e4ccc;p=thirdparty%2Fkea.git bug #1728: Add -avoid-version to LDFLAGS for Python modules (contd.) --- diff --git a/src/lib/util/io/Makefile.am b/src/lib/util/io/Makefile.am index 96b9d25c7b..2c3ed9640d 100644 --- a/src/lib/util/io/Makefile.am +++ b/src/lib/util/io/Makefile.am @@ -13,7 +13,7 @@ CLEANFILES = *.gcno *.gcda pyexec_LTLIBRARIES = libutil_io_python.la # Python prefers .so, while some OSes (specifically MacOS) use a different # suffix for dynamic objects. -module is necessary to work this around. -libutil_io_python_la_LDFLAGS = -module +libutil_io_python_la_LDFLAGS = -module -avoid-version libutil_io_python_la_SOURCES = fdshare_python.cc libutil_io_python_la_LIBADD = libutil_io.la libutil_io_python_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES) diff --git a/src/lib/util/pyunittests/Makefile.am b/src/lib/util/pyunittests/Makefile.am index dd2d39ac1a..93b0748b77 100644 --- a/src/lib/util/pyunittests/Makefile.am +++ b/src/lib/util/pyunittests/Makefile.am @@ -13,7 +13,7 @@ pyunittests_util_la_CXXFLAGS = $(AM_CXXFLAGS) $(PYTHON_CXXFLAGS) # Python prefers .so, while some OSes (specifically MacOS) use a different # suffix for dynamic objects. -module is necessary to work this around. -pyunittests_util_la_LDFLAGS += -module +pyunittests_util_la_LDFLAGS += -module -avoid-version pyunittests_util_la_LIBADD = $(top_builddir)/src/lib/util/libutil.la pyunittests_util_la_LIBADD += $(PYTHON_LIB)