From 1b20d7980e494b5b119d9784e5a20305b4d0bcb7 Mon Sep 17 00:00:00 2001 From: Duke Date: Thu, 6 Apr 2023 18:48:52 -0700 Subject: [PATCH] freebsd changes to config.site.in --- depends/config.site.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/depends/config.site.in b/depends/config.site.in index dbcb7a6e4..0727fe4bd 100644 --- a/depends/config.site.in +++ b/depends/config.site.in @@ -32,7 +32,11 @@ export PKG_CONFIG_LIBDIR=$depends_prefix/lib/pkgconfig export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS" -LDFLAGS="-L$depends_prefix/lib $LDFLAGS" +if test x@host_os@ = xfreebsd; then + LDFLAGS="-L$depends_prefix/lib $LDFLAGS -static-libstdc++ -lcxxrt" +else + LDFLAGS="-L$depends_prefix/lib $LDFLAGS -static-libstdc++ -lc++abi" +fi CC="@CC@" CXX="@CXX@"