diff --git a/config/freebsd b/config/freebsd index d59eb2aaeb..16c36fcd48 100644 --- a/config/freebsd +++ b/config/freebsd @@ -65,8 +65,8 @@ fi # 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 -D_THREAD_SAFE" - CXXFLAGS="$CXXFLAGS -D_THREAD_SAFE" + H5_CFLAGS="$H5_CFLAGS -D_THREAD_SAFE" + H5_CXXFLAGS="$H5_CXXFLAGS -D_THREAD_SAFE" LDFLAGS="$LDFLAGS -pthread" fi