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

noreply@sourceforge.net noreply@sourceforge.net
Wed Oct 31 08:53:07 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.

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

Comment By: A.J.Smith (ajs_rdg)
Date: 2001-10-31 08:52

Message:
Logged In: YES 
user_id=362931

This looks like just the problem I have. Please, can you 
clarify: WHERE do I have to change '-static' to '-B static'?

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

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