summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_freebsd.GNU
diff options
context:
space:
mode:
authorcrodrigu <crodrigu@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-11-14 23:06:39 +0000
committercrodrigu <crodrigu@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-11-14 23:06:39 +0000
commit520b0e8625cd2a74e29eceaf3367785db4b7e9cb (patch)
tree25a1a8bc11599ae83b0aec053399fc0de306f456 /include/makeinclude/platform_freebsd.GNU
parent6c832afe084412ad5f3119a551a9070d3791cd09 (diff)
downloadATCD-520b0e8625cd2a74e29eceaf3367785db4b7e9cb.tar.gz
ChangeLogTag: Thu Nov 14 22:47:45 UTC 2002 Craig Rodrigues <crodrigu@bbn.com>
Diffstat (limited to 'include/makeinclude/platform_freebsd.GNU')
-rw-r--r--include/makeinclude/platform_freebsd.GNU10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/makeinclude/platform_freebsd.GNU b/include/makeinclude/platform_freebsd.GNU
index a7eb55eeac4..964efc6b186 100644
--- a/include/makeinclude/platform_freebsd.GNU
+++ b/include/makeinclude/platform_freebsd.GNU
@@ -11,6 +11,10 @@ ifndef exceptions
exceptions = 1
endif
+ifeq (,$(threads))
+ threads = 1
+endif
+
ifeq (,$(debug))
debug = 1
endif
@@ -45,3 +49,9 @@ RANLIB = ranlib
SOFLAGS += $(CPPFLAGS) -shared
SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
PRELIB = @echo
+
+ifeq ($(threads),1)
+LDFLAGS += -pthread
+CFLAGS += -D_THREAD_SAFE
+endif # threads
+