freebsd-src/lib/libcxxrt/Makefile
Dimitry Andric 911a6479e1 libcxxrt: define SHLIBDIR before including bsd.own.mk
Otherwise bsd.own.mk overrides it, causing libcxxrt.so.1 to be
erroneously installed into /usr/lib.

Also add an ObsoleteFiles.inc entry, for removing the bad copy.

Reported by:	Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Fixes:		da77a1b4f0
2024-04-22 20:46:45 +02:00

45 lines
787 B
Makefile

SHLIBDIR?= /lib
.include <bsd.own.mk>
PACKAGE= clibs
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>