diff options
Diffstat (limited to 'dev-db/postgis/files/postgis-3.0.3-detect-only-stdc.patch')
-rw-r--r-- | dev-db/postgis/files/postgis-3.0.3-detect-only-stdc.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-db/postgis/files/postgis-3.0.3-detect-only-stdc.patch b/dev-db/postgis/files/postgis-3.0.3-detect-only-stdc.patch new file mode 100644 index 000000000000..5b97102bb236 --- /dev/null +++ b/dev-db/postgis/files/postgis-3.0.3-detect-only-stdc.patch @@ -0,0 +1,17 @@ +diff -Naruw postgis-3.1.0.orig/configure.ac postgis-3.1.0/configure.ac +--- postgis-3.1.0.orig/configure.ac 2020-12-18 14:39:26.000000000 -0500 ++++ postgis-3.1.0/configure.ac 2020-12-19 07:35:13.232167083 -0500 +@@ -1501,12 +1501,9 @@ + dnl ============================================================ + CC="$WAGYU_CXX" + +- AC_CHECK_LIB(c++, main, [HAVE_CPP=yes], [HAVE_CPP=no]) + AC_CHECK_LIB(stdc++, main, [HAVE_STDCPP=yes], [HAVE_STDCPP=no]) + +- if test "x$HAVE_CPP" = "xyes"; then +- WAGYU_LDFLAGS="-lc++" +- elif test "x$HAVE_STDCPP" = "xyes"; then ++ if test "x$HAVE_STDCPP" = "xyes"; then + WAGYU_LDFLAGS="-lstdc++" + else + AC_MSG_WARN("Could not find a C++ standard library") |