Hello,

I wanted to link log4cxx statically to libexpat, which I managed to do, but
only by altering the build.xml file like so:

Since I already had libexpat, I changed this line:
-        <libset libs="expat" if="has-expat"/>
+        <libset libs="expat" type="static"/>

And also added this line beneath the cppunit lib properties.
+<property name="expat.lib.type" value="static"/>

Granted I probably didn't need to specify static in two locations in the
build script. However, was there an easier way to do this? I tried building
with the following options:

ant -Ddebug=false -Dlib.type=shared -Dexpat.lib.type=shared

but I don't think that expat lib type options are recognized.

Thanks!
Steve

Reply via email to