1 |
|
# $MidnightBSD$ |
2 |
< |
# $FreeBSD: src/gnu/lib/libsupc++/Makefile,v 1.9 2007/05/19 04:25:56 kan Exp $ |
2 |
> |
# $FreeBSD: stable/10/gnu/lib/libsupc++/Makefile 260096 2013-12-30 20:15:46Z dim $ |
3 |
|
|
4 |
+ |
.include <bsd.own.mk> |
5 |
+ |
|
6 |
|
GCCVER= 4.2 |
7 |
< |
GCCDIR= ${.CURDIR}/../../../contrib/gcc4 |
7 |
> |
GCCDIR= ${.CURDIR}/../../../contrib/gcc |
8 |
|
GCCLIB= ${.CURDIR}/../../../contrib/gcclibs |
9 |
|
SRCDIR= ${.CURDIR}/../../../contrib/libstdc++/libsupc++ |
10 |
|
|
23 |
|
SRCS+= cp-demangle.c |
24 |
|
|
25 |
|
CFLAGS+= -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H |
26 |
+ |
.if ${MACHINE_CPUARCH} == "arm" && ${MK_ARM_EABI} == "no" |
27 |
+ |
CFLAGS+= -D_GLIBCXX_SJLJ_EXCEPTIONS=1 |
28 |
+ |
.endif |
29 |
|
CFLAGS+= -I${GCCLIB}/include -I${SRCDIR} -I${GCCDIR} |
30 |
|
CFLAGS+= -I${.CURDIR}/../libstdc++ -I. |
31 |
|
CFLAGS+= -frandom-seed=RepeatabilityConsideredGood |
36 |
|
INCS= ${HDRS:S;^;${SRCDIR}/;} |
37 |
|
INCSDIR=${INCLUDEDIR}/c++/${GCCVER} |
38 |
|
|
39 |
+ |
.if ${MACHINE_CPUARCH} == "arm" && ${MK_ARM_EABI} != "no" |
40 |
+ |
unwind.h: ${GCCDIR}/config/arm/unwind-arm.h |
41 |
+ |
.else |
42 |
|
unwind.h: ${GCCDIR}/unwind-generic.h |
43 |
+ |
.endif |
44 |
+ |
|
45 |
+ |
unwind.h: |
46 |
|
ln -sf ${.ALLSRC} ${.TARGET} |
47 |
|
|
48 |
|
SRCS+= unwind.h |
57 |
|
|
58 |
|
# Filter out libc++-specific flags, and -std= flags above c++98 or gnu++98. |
59 |
|
CXXFLAGS:= ${CXXFLAGS:N-stdlib=libc++:N-std=c++[01][13x]:N-std=gnu++[01][13x]} |
60 |
+ |
|
61 |
+ |
CXXFLAGS.clang+= -stdlib=libstdc++ |