mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 03:04:34 +01:00
6077246e88
Use src.opts.mk instead of bsd.own.mk and define PACKAGE first.
Fixes: da77a1b4f0
libcxxrt: don't export nonexistant symbols
45 lines
788 B
Makefile
45 lines
788 B
Makefile
PACKAGE= clibs
|
|
SHLIBDIR?= /lib
|
|
|
|
.include <src.opts.mk>
|
|
|
|
SRCDIR= ${SRCTOP}/contrib/libcxxrt
|
|
|
|
SHLIB_MAJOR= 1
|
|
|
|
.PATH: ${SRCDIR}
|
|
|
|
LIB= cxxrt
|
|
|
|
SRCS+= auxhelper.cc
|
|
SRCS+= dynamic_cast.cc
|
|
SRCS+= exception.cc
|
|
SRCS+= guard.cc
|
|
SRCS+= libelftc_dem_gnu3.c
|
|
SRCS+= memory.cc
|
|
SRCS+= stdexcept.cc
|
|
SRCS+= terminate.cc
|
|
SRCS+= typeinfo.cc
|
|
|
|
WARNS?= 0
|
|
CFLAGS+= -isystem ${SRCDIR} -nostdinc++
|
|
CXXSTD?= c++14
|
|
|
|
.if exists(Version.map.${MACHINE})
|
|
VERSION_MAP= ${.CURDIR}/Version.map.${MACHINE}
|
|
.else
|
|
.if ${MACHINE_ABI:Mlong32}
|
|
VERSION_MAP= Version-32.map
|
|
.else
|
|
VERSION_MAP= Version-64.map
|
|
.endif
|
|
|
|
Version-32.map: Version.map
|
|
sed 's/%%NEW_DELETE_TYPE%%/int/' ${.ALLSRC} > ${.TARGET}
|
|
|
|
Version-64.map: Version.map
|
|
sed 's/%%NEW_DELETE_TYPE%%/long/' ${.ALLSRC} > ${.TARGET}
|
|
.endif
|
|
|
|
.include <bsd.lib.mk>
|