summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/freebsd5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/freebsd b/config/freebsd
index b7598cc..f4a5518 100644
--- a/config/freebsd
+++ b/config/freebsd
@@ -27,8 +27,7 @@ NOFP=${NOFP:=-fomit-frame-pointer}
# Special setup to use pthread support if enable-threadsafe is on.
# Works with static executable only.
if test "X-" != "X-$enable_threadsafe"; then
- CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
+ CFLAGS="$CFLAGS -D_THREAD_SAFE"
+ CXXFLAGS="$CXXFLAGS -D_THREAD_SAFE"
LDFLAGS="$LDFLAGS -pthread"
- LIBS="$LIBS -lcipher"
- enable_static_exec=yes
fi