expat-1.95.2 on Solaris
Dimitri PAPADOPOULOS-ORFANOS
papadopo@shfj.cea.fr
Thu, 9 Aug 2001 12:30:25 +0200 (MEST)
Hi,
I'm trying to build expat-1.95.2 on Solaris using Sun WorkShop 5.0.
1) I had to use GNU make. Sun make doesn't work. There's not even
an error message.
2) I get an error while building xmlwf:
cc -o xmlwf -static xmlwf.o xmlfile.o codepage.o unixfilemap.o -L../lib/.libs
-lexpat
cc: -a conflicts with -dy.
gmake[1]: *** [xmlwf] Error 1
The reason is that cc does not know -static. I changed
LDFLAGS= @LDFLAGS@ -static
to
LDFLAGS= @LDFLAGS@ -static
in xmlwf/Makefile.in and xmlwf now builds correctly
although dynamically linked instead of statically.
I tried with -Bstatic but then all libraries are ncluding
the C library are linked statically which is not what you
want.
The correct command line would be:
cc -o xmlwf xmlwf.o xmlfile.o codepage.o unixfilemap.o -L../lib/.libs
-Bstatic -lexpat -Bdynamic
But libtool should probably take care of this.