$OpenBSD: patch-ZenLib_Project_GNU_Library_configure,v 1.8 2018/10/02 21:06:29 naddy Exp $
Index: ZenLib/Project/GNU/Library/configure
--- ZenLib/Project/GNU/Library/configure.orig
+++ ZenLib/Project/GNU/Library/configure
@@ -15538,10 +15538,10 @@ fi
 
 
 if test "$enable_shared" = "yes"; then
-    ZenLib_LIBS="-L$(pwd)/.libs -lzen -lpthread -lstdc++ $ZenLib_LIBS"
+    ZenLib_LIBS="-L$(pwd)/.libs -lzen -lpthread $ZenLib_LIBS"
 fi
 if test "$enable_static" = "yes"; then
-    ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a -lpthread -lstdc++ $ZenLib_LIBS_Static"
+    ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a -lpthread $ZenLib_LIBS_Static"
 fi
 
 
@@ -15646,9 +15646,6 @@ if test "$GXX" = yes ; then
 	if test "$enable_debug" = "yes"; then
 		CFLAGS="$CFLAGS -O0 -g -Wall -Wundef"
 		CXXFLAGS="$CXXFLAGS -O0 -g -Wall -W -Wundef -Wcast-qual -Wno-ctor-dtor-privacy"
-	else
-		CFLAGS="$CFLAGS -O2"
-		CXXFLAGS="$CXXFLAGS -O2"
 	fi
 	if test "$enable_gprof" = "yes"; then
 		CFLAGS="$CFLAGS -pg -g"
@@ -15656,7 +15653,7 @@ if test "$GXX" = yes ; then
 	fi
 fi
 
-LDFLAGS="$LDFLAGS -lpthread -lstdc++"
+LDFLAGS="$LDFLAGS -lpthread"
 
 
 
