Index: tools/geos-config.in
--- tools/geos-config.in.orig	2019-10-11 20:16:43.967287000 +0200
+++ tools/geos-config.in	2019-10-11 20:17:45.361713000 +0200
@@ -46,16 +46,16 @@
       echo -L@libdir@ -lgeos-@VERSION_RELEASE@
       ;;
     --clibs)
-      echo -L@libdir@ -lgeos_c
+      echo -L@libdir@ -lgeos_c -lgeos -lstdc++ -lm
       ;;
     --cclibs)
-      echo -L@libdir@ -lgeos
+      echo -L@libdir@ -lgeos -lm
       ;;
     --static-clibs)
       echo -L@libdir@ -lgeos_c -lgeos -lm
       ;;
     --static-cclibs)
-      echo -L@libdir@ -lgeos -lm
+      echo -L@libdir@ -lgeos -lstdc++ -lm
       ;;
     --ldflags)
       echo -L@libdir@
