mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 19:28:36 +00:00
![Dimitry Andric](/assets/img/avatar_default.png)
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
45 lines
787 B
Makefile
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>
|