summaryrefslogtreecommitdiffstats
path: root/make/variant/freebsd.defs
blob: 5959341e47b3dc1d42f3dd39b81444072d1c7369 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# LOCALBASE is where FreeBSD ports are installed. default is '/usr/local'.
LOCALBASE  ?= /usr/local

TARGET.dylib.ext = .so

GCC.D       = LIBICONV_PLUG

GCC.args.dylib = -shared
GCC.args.pic   = 1

GCC.args.g.none = -g0
GCC.args.g.min  = -g1
GCC.args.g.std  = -g2
GCC.args.g.max  = -g3

GCC.MAJOR_VERSION = $(shell $(GCC.gcc) -dumpversion | cut -f 1 -d .)
GCC.LDFLAGS = -lc++ -Wl,-rpath=$(LOCALBASE)/lib/gcc$(GCC.MAJOR_VERSION)
LDFLAGS += $(if $(findstring gcc, $(GCC.gcc)), $(GCC.LDFLAGS), )