Add libcxxrt's objects (prefixing them with cxxrt_ to avoid collisions)
to libc++.a and libc++_p.a, to make static linking of C++ executables with libc++ easier. This is similar to the approach used in libstdc++. MFC after: 2 weeks
This commit is contained in:
parent
190cc7cf25
commit
15e154df01
@ -35,8 +35,25 @@ SRCS+= algorithm.cpp\
|
|||||||
utility.cpp\
|
utility.cpp\
|
||||||
valarray.cpp
|
valarray.cpp
|
||||||
|
|
||||||
|
CXXRT_SRCS+= libelftc_dem_gnu3.c\
|
||||||
|
terminate.cc\
|
||||||
|
dynamic_cast.cc\
|
||||||
|
memory.cc\
|
||||||
|
auxhelper.cc\
|
||||||
|
exception.cc\
|
||||||
|
stdexcept.cc\
|
||||||
|
typeinfo.cc\
|
||||||
|
guard.cc
|
||||||
|
|
||||||
|
.for _S in ${CXXRT_SRCS}
|
||||||
|
STATICOBJS+= cxxrt_${_S:R}.o
|
||||||
|
cxxrt_${_S}:
|
||||||
|
ln -sf ${LIBCXXRTDIR}/${_S} ${.TARGET}
|
||||||
|
.endfor
|
||||||
|
|
||||||
WARNS= 0
|
WARNS= 0
|
||||||
CXXFLAGS+= -I${HDRDIR} -I${LIBCXXRTDIR} -std=c++0x -nostdlib -DLIBCXXRT
|
CFLAGS+= -I${HDRDIR} -I${LIBCXXRTDIR} -nostdlib -DLIBCXXRT
|
||||||
|
CXXFLAGS+= -std=c++0x
|
||||||
|
|
||||||
DPADD= ${LIBCXXRT}
|
DPADD= ${LIBCXXRT}
|
||||||
LDADD= -lcxxrt
|
LDADD= -lcxxrt
|
||||||
|
Loading…
Reference in New Issue
Block a user