summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_freebsd_pthread.GNU
blob: 6e997d4efeee4e30a0575a02cfbc7ee50f22bb38 (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
# $Id$

# platform_freebsd_pthread.GNU

optimize = 1

# For pthreads support on FreeBSD, you need

debug = 1
versioned_so = 1

CC              = gcc
CXX		= g++
CFLAGS          += -Wall -Wpointer-arith -pipe -D_THREAD_SAFE
CCFLAGS         += $(CFLAGS) -fno-implicit-templates
DCFLAGS         += -g
DLD             = $(CXX)
LD		= $(CXX) -pthread
LIBS            += -lstdc++ -lcompat
OCFLAGS         += -O
PIC             = -fpic
AR              = ar
ARFLAGS         = ruv
RANLIB          = ranlib

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