Hi!
I'm upgrading Xerces to 1.4.0, and I have a problem with CFLAGS. During
the build, a typical compile command is like this:
c++ -fPIC -instances=static -DNETBSD -c -O -O2 -I/usr/pkg/include
-DXML_USE_ICU_TRANSCODER -DXML_USE_NETACCESSOR_SOCKET -DAPP_NO_THREADS
-O2 -I/usr/pkg/include -DXML_USE_ICU_TRANSCODER
-DXML_USE_NETACCESSOR_SOCKET -DAPP_NO_THREADS -O2 -I/usr/pkg/include
-DXML_USE_ICU_TRANSCODER -DXML_USE_NETACCESSOR_SOCKET -DAPP_NO_THREADS
-I/usr/pkgsrc/textproc/xerces-c/work/xerces-c-src1_4_0/include -o
/usr/pkgsrc/textproc/xerces-c/work/xerces-c-src1_4_0/obj/NETBSD/SAXExcep
tion.o SAXException.cpp
There is a problam with having -I/usr/pkg/include at the beginning:
older Xerces header files are included instead of newer headers from
/usr/pkgsrc/textproc/xerces-c/work/xerces-c-src1_4_0/include.
We need the -I/usr/pkg/include to get ICU headers, so removing it is not
an option. I'd like to supply -I/usr/pkg/include at the end of the
command line. To do this, I need to override the default CFLAGS created
by bsd.pkg.mk. Is there any safe way of doing this (ie: how to preserve
other arguments supplied by bsd.pkg.mk)
--
Emmanuel Dreyfus
p99dreyf@criens.u-psud.fr