blob: 9616ce5419306b564c6c2c2c094f6221a8e599ce (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $Id$
# platform_netbsd.GNU
# ***** Notice: This file is still under testing. *****
# To be used on netbsd platform without pthread support.
debug = 1
optimize = 1
versioned_so = 1
CC = gcc
CXX = g++
CXX_VERSION := $(shell $(CXX) -dumpversion)
# If no option has been specified, try to enable implicit_templates based
# on the version of the compiler.
#
ifeq ($(implicit_templates),)
ifeq (2.95,$(findstring 2.95,$(CXX_VERSION)))
implicit_templates = 1
else
ifeq (3.,$(findstring 3.,$(CXX_VERSION)))
implicit_templates = 1
endif
ifeq (2.96,$(findstring 2.96,$(CXX_VERSION)))
implicit_templates = 1
endif
endif
endif
# User didn't specify and we couldn't guess if this version of the compiler
# works fine with implicit template instantiation. Turn if off. This could
# as well go into the previous check but GNU Make conditionals are lame.
#
ifeq ($(implicit_templates),)
implicit_templates = 0
endif
ifeq ($(implicit_templates),0)
ifeq ($(IMPLICIT_TEMPLATES_FLAG),) # Turn on flags if none is speficied.
IMPLICIT_TEMPLATES_FLAG=-fno-implicit-templates
endif
endif
CFLAGS += -w -fno-strict-prototypes
CCFLAGS += $(CFLAGS) -fno-implicit-templates
DCFLAGS += -g
DLD = ld
LD = $(CXX)
LIBS += -lstdc++ #-lcompat -lresolv
##OCFLAGS += -O2
PIC = -fpic -DPIC
AR = ar
ARFLAGS = ruv
RANLIB = ranlib
SOFLAGS = -Bshareable -x /usr/lib/c++rt0.o
SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
PRELIB = @echo
|