fix the build problem: add -idirafter ${PREFIX}/usr/include/g++ to

CLFAGS because /usr/share/mk/bsd.sys.mk adds -nostdinc -idirafter
${PREFIX}/usr/include when PREFIX defined. But for C++ we also need
/usr/include/g++.
This commit is contained in:
matthieu 2000-09-03 08:26:54 +00:00
parent 0c672358c5
commit 66b2a87c73

View File

@ -23,7 +23,8 @@ CPPLIB= -lg++
# you must use -fno-implicit-templates
# and -O (or any optimization level >= 1).
# c++ is a front-end for gcc which takes care of linking with -lstdc++
CXX=c++ -fno-implicit-templates -O2
# the -idirafter option is to work around the bsd.sys.mk lossage with C++
CXX=c++ -fno-implicit-templates -O2 -idirafter=${DESTDIR}/usr/include/g++
#WARN=-Wall -Wno-reorder -Wwrite-strings -Wpointer-arith -Wnested-externs -Woverloaded-virtual -Wbad-function-cast -Wno-unused
# Executables will be *very* large if you use -g.
DEBUG=