[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compiling libg++/libg++



src/gnu/lib/libg++/libstdc++/stdexcept,
src/gnu/lib/libg++/libg++/src/AllocRing.cc fail to compile because
'#include <exception>' and '#include <new.h>' cannot be found. I have
DESTDIR set and, as an example, the build line for AllocRing.cc is:

g++ -O -fno-implicit-templates -I. \
-I/src/openbsd-current/src/gnu/lib/libg++/libg++/src \
-I/src/openbsd-current/src/gnu/lib/libg++/libg++/../libio \
-I/src/openbsd-current/src/gnu/lib/libg++/libg++/../libstdc++ \
-I/src/openbsd-current/src/gnu/lib/libg++/libg++/../libio -nostdinc \
-idirafter /src/openbsd-current/root/usr/include \
-c /src/openbsd-current/src/gnu/lib/libg++/libg++/src/AllocRing.cc -o

The problem is that <exception> and <new.h> are in
/src/openbsd-current/root/usr/include/g++. My temporary solution was to
add '-idirafter ${DESTDIR}/usr/include/g++' to the CPPFLAGS line in
/usr/share/mk/bsd.sys.mk (same line that added the original
'-idirafter ...').

FYI, this is being compiled under OpenBSD 2.2/pmax.

-- 
albert chin (china_(_at_)_lystra_(_dot_)_org)			NeXTMail accepted

Visit your host, monkey.org