[ expat-Bugs-469226 ] -static is invalid for Sun's compiler
noreply@sourceforge.net
noreply@sourceforge.net
Fri Dec 7 02:49:02 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: Closed
>Resolution: Fixed
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: Greg Stein (gstein)
Date: 2001-12-07 02:48
Message:
Logged In: YES
user_id=6501
We're now using libtool to perform this link. No more
-static flag, as we assume libtool will figure it out for
us. The libtool configure-time flags such as
--disable-shared can control whether static or shared stuff
is built.
Closing as fixed in the upcoming release.
----------------------------------------------------------------------
Comment By: Max Horn (fingolfin)
Date: 2001-10-31 13:50
Message:
Logged In: YES
user_id=12935
For OS X, -static has to be dropped, too, see http://sourceforge.net/tracker/?func=detail&atid=110127&aid=445955&group_id=10127
This should be fixed by a check in configure.in I'd say.
----------------------------------------------------------------------
Comment By: A.J.Smith (ajs_rdg)
Date: 2001-10-31 08:57
Message:
Logged In: YES
user_id=362931
Oh - I see it now: expat-1.95.2/xmlwf/Makefile
----------------------------------------------------------------------
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