When using an external gcc 4.8+ and not building libstdc++ then create in the objectdir a

fake libstdc++.so and libstdc++.a which is a symlink on libc++ that allow g++ to satisfy
its links dependencies in the least hackish way.
Please note that this hacky libstds++ never get installed on the final system

Reviewed by:	imp
This commit is contained in:
Baptiste Daroussin 2014-10-21 20:04:05 +00:00
parent ff2cf3685b
commit aa7703be9c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273407

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <src.opts.mk>
LIBCXXRTDIR= ${.CURDIR}/../../contrib/libcxxrt
HDRDIR= ${.CURDIR}/../../contrib/libc++/include
SRCDIR= ${.CURDIR}/../../contrib/libc++/src
@ -192,4 +194,14 @@ EXT+= ${HDRDIR}/ext/${hdr}
.endfor
EXTDIR= ${CXXINCLUDEDIR}/ext
.if ${MK_GNUCXX} == "no" && ${COMPILER_TYPE} == "gcc"
CLEANFILES+= libstdc++.so libstdc++.a
afterinstall:
ln -sf ${DESTDIR}${LIBDIR}/lib${LIB}.so \
${.OBJDIR}/libstdc++.so
ln -sf ${DESTDIR}${LIBDIR}/lib${LIB}.a \
${.OBJDIR}/libstdc++.a
.endif
.include <bsd.lib.mk>