2024-04-22 18:37:17 +00:00
|
|
|
PACKAGE= clibs
|
2024-04-22 18:43:27 +00:00
|
|
|
SHLIBDIR?= /lib
|
|
|
|
|
2024-04-22 18:37:17 +00:00
|
|
|
.include <src.opts.mk>
|
2011-11-25 20:59:04 +00:00
|
|
|
|
2017-01-20 04:53:00 +00:00
|
|
|
SRCDIR= ${SRCTOP}/contrib/libcxxrt
|
2011-11-25 20:59:04 +00:00
|
|
|
|
2012-06-02 11:00:48 +00:00
|
|
|
SHLIB_MAJOR= 1
|
2011-11-25 20:59:04 +00:00
|
|
|
|
|
|
|
.PATH: ${SRCDIR}
|
|
|
|
|
2012-06-02 11:00:48 +00:00
|
|
|
LIB= cxxrt
|
2011-11-25 20:59:04 +00:00
|
|
|
|
2022-01-22 20:08:55 +00:00
|
|
|
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
|
2011-11-25 20:59:04 +00:00
|
|
|
|
2020-09-11 13:28:37 +00:00
|
|
|
WARNS?= 0
|
2016-05-29 06:20:15 +00:00
|
|
|
CFLAGS+= -isystem ${SRCDIR} -nostdinc++
|
2019-07-26 16:55:06 +00:00
|
|
|
CXXSTD?= c++14
|
2024-04-16 17:04:16 +00:00
|
|
|
|
|
|
|
.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
|
2011-11-25 20:59:04 +00:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
2024-05-17 20:22:22 +00:00
|
|
|
|
|
|
|
# gcc13 doesn't support _Float16 on riscv, powerpc64, and x86 or __int128
|
|
|
|
# on i386. Disable checks for missing symbols to allow this to link.
|
|
|
|
#
|
|
|
|
# XXX: This is a hack that hides an ABI divergence between clang and gcc.
|
|
|
|
.if ${COMPILER_TYPE} == "gcc" && \
|
|
|
|
(${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \
|
|
|
|
${MACHINE_ARCH:Mpowerpc64*} || ${MACHINE_ARCH} == "riscv64")
|
|
|
|
LDFLAGS+= -Wl,--undefined-version
|
|
|
|
.endif
|