[ expat-Bugs-469226 ] -static is invalid for Sun's compiler

noreply@sourceforge.net noreply@sourceforge.net
Mon Oct 8 11:44:16 2001


Bugs item #469226, was opened at 2001-10-08 11:43
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=469226&group_id=10127

Category: Build control
Group: Platform Specific
Status: Open
Resolution: None
Priority: 5
Submitted By: David Reed (dtreed)
Assigned to: Greg Stein (gstein)
Summary: -static is invalid for Sun's compiler

Initial Comment:
The -static lines for LDFLAGS in the Makefiles for 
xmlwf and examples causes build problems when using 
Sun's purchased compiler (Forte) on a Sun box running 
Solaris 7.  The error really isn't visable but it 
gives the following during a build:

cc -g -I../lib   -c -o unixfilemap.o unixfilemap.c
cc -o xmlwf -static xmlwf.o xmlfile.o codepage.o 
unixfilemap.o -L../lib/.libs -lexpat
cc: -a conflicts with -dy.
make[1]: *** [xmlwf] Error 1
make[1]: Leaving 
directory '/export/home/verity/src/Other/expat-
1.95.2/xmlwf'
make: *** [xmlwf] Error 2

When "-static" is changed to "-B static" everything 
works just fine.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=469226&group_id=10127