# LOCALBASE is where NetBSD packages are installed. default is '/usr/pkg'.
LOCALBASE  ?= /usr/pkg

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 =
LDFLAGS += $(if $(findstring gcc, $(GCC.gcc)), $(GCC.LDFLAGS), )
LDFLAGS += -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
