From: Sandro Santilli Date: Mon, 21 Sep 2015 16:16:15 +0000 (+0000) Subject: Search for exclude-libs support at configure time X-Git-Tag: 2.2.0rc1~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6367d3b6735dfe3d57939eff05eb717be64297b8;p=postgis Search for exclude-libs support at configure time git-svn-id: http://svn.osgeo.org/postgis/trunk@14082 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.ac b/configure.ac index 87e1cc7ae..eaa748c85 100644 --- a/configure.ac +++ b/configure.ac @@ -68,6 +68,14 @@ NUMERICFLAGS="" AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -ffloat-store], [dummy_cv_ffloat_store], [-ffloat-store], [], [NUMERICFLAGS="$NUMERICFLAGS -ffloat-store"], []) AC_SUBST([NUMERICFLAGS]) +dnl +dnl Exporting used library symbols in the module is a source of issues, +dnl see https://trac.osgeo.org/postgis/ticket/3281 +dnl +EXCLUDELIBS_LDFLAGS="" +AC_LIBTOOL_COMPILER_OPTION([if $compiler supports --exclude-libs], [_cv_exclude_libs], [--Wl,--exclude-libs,ALL], [], [EXCLUDELIBS_LDFLAGS="-Wl,--exclude-libs,ALL"], []) +AC_SUBST([EXCLUDELIBS_LDFLAGS]) + dnl dnl Define executable suffix for use with the loader Makefiles dnl @@ -997,7 +1005,7 @@ fi CPPFLAGS="$PGSQL_CPPFLAGS $GEOS_CPPFLAGS $PROJ_CPPFLAGS $XML2_CPPFLAGS $SFCGAL_CPPFLAGS $JSON_CPPFLAGS $PCRE_CPPFLAGS $CPPFLAGS" dnl AC_MSG_RESULT([CPPFLAGS: $CPPFLAGS]) -SHLIB_LINK="$PGSQL_LDFLAGS $GEOS_LDFLAGS $PROJ_LDFLAGS -lgeos_c -lproj $JSON_LDFLAGS $XML2_LDFLAGS $SFCGAL_LDFLAGS $PCRE_LDFLAGS" +SHLIB_LINK="$PGSQL_LDFLAGS $GEOS_LDFLAGS $PROJ_LDFLAGS -lgeos_c -lproj $JSON_LDFLAGS $XML2_LDFLAGS $SFCGAL_LDFLAGS $PCRE_LDFLAGS $EXCLUDELIBS_LDFLAGS" AC_SUBST([SHLIB_LINK]) dnl AC_MSG_RESULT([SHLIB_LINK: $SHLIB_LINK])