summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_freebsd_pthread.GNU
blob: 947d47924e81be687d7ba18455599a7485a672bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id$

# platform_freebsd_pthread.GNU

# ***** Notice: This configuration is still under debugging. *****
optimize = 1
# ***** It still doesn't work quite the way it expected to.  *****

# For pthreads support on FreeBSD, you need
# -D_POSIX_THREADS
# You must have the latest pthread library by John Birrell.
# and link with reentrant library libc_r.  If you can't find this
# library (libc_r.so) in your system, do a "man pthread" and follow the
# instruction to build your own.  You must have at least 3.0-current as
# of 2/9/1997 to take advantage of the latest feature of pthread library.

debug = 1

CC              = gcc
CXX		= g++
CFLAGS          += -w -fno-strict-prototypes -D_POSIX_THREADS
CCFLAGS         += $(CFLAGS) -fno-implicit-templates
DCFLAGS         += -g
DLD             = ld
LD		= $(CXX) 
LIBS            += -lc_r -lstdc++ -lcompat
OCFLAGS         += -O2
PIC             = -fpic -DPIC
AR              = ar
ARFLAGS         = ruv
RANLIB          = ranlib

# SOFLAGS = $(CPPFLAGS) -shared
SOFLAGS = -Bshareable -x
SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
PRELIB = @echo