$OpenBSD: patch-src_Makefile_in,v 1.3 2015/09/20 07:59:09 landry Exp $
--- src/Makefile.in.orig	Mon Aug 17 00:22:04 2015
+++ src/Makefile.in	Sat Sep 19 12:42:57 2015
@@ -457,8 +457,7 @@ lib_LTLIBRARIES = libgeos.la
 # effort to determine this because depending programs should not be
 # using the C++ library.
 libgeos_la_LDFLAGS = \
-    -release @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@ \
-    -no-undefined
+    -no-undefined -lstdc++ -lm
 
 libgeos_la_SOURCES = \
     inlines.cpp
