sthen 7c587d8b38 upstream try to avoid dynamic-linking to produce a binary that works more easily
across linux distributions; that's not really useful for us, and the way they
did it (link with cc -lsupc++) doesn't work so well with clang. just switch to
normal linking with c++. ok espie@ kirby@
2017-05-25 16:31:41 +00:00

20 lines
576 B
Plaintext

$OpenBSD: patch-configure,v 1.3 2017/05/25 16:31:41 sthen Exp $
We care more about building with clang than binary portability between
Linux distributions.
Index: configure
--- configure.orig
+++ configure
@@ -12397,7 +12397,9 @@ $as_echo "$as_me: error: gethostbyname_r is required"
;;
esac
-if test -n "$GCC"; then
+if true; then
+ LD="$CXX"
+else
# Starting with GCC 3.0, you must link C++ programs against either
# libstdc++ (shared by default), or libsupc++ (always static). If
# you care about binary portability between Linux distributions,