You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Craig Noah <Cr...@sterling.com> on 2000/05/19 22:27:49 UTC
Static build
I know this is not officially supported, but I need to get a static
build of the Xerces libraries (latest cvs code) on a Solaris 2.6 with
gcc 2.95.2. Does anyone know what I need to change in the makefile in
order to make this happen?
Gratefully,
Craig
--
Craig Noah INTERNET: Craig.Noah@sterling.com
Software Engineer
Computer Associates
1404 Fort Crook Road South Phone: (402) 291-8300 x 284
Bellevue, NE 68005-2969 FAX: (402) 291-4362
Re: Static build
Posted by Craig Noah <Cr...@sterling.com>.
Mike,
Thank you. It worked.
Craig
Michael Mason wrote:
> Craig Noah wrote:
> >
> > I know this is not officially supported, but I need to get a static
> > build of the Xerces libraries (latest cvs code) on a Solaris 2.6 with
> > gcc 2.95.2. Does anyone know what I need to change in the makefile in
> > order to make this happen?
>
> Very very unofficially I've got this to work by adding all the .o files
> which end up in the obj/ directory to a static library and then using
> that. Something like this should do the trick:
>
> ar rv libMyXercesLib.a obj/*.o
> ranlin libMyXercesLib.a
>
> This is of course not the Right Way(tm) to do it, but it does work.
>
> Mike.
>
> --
> Mike Mason, Software Engineer
> XML Script Development Team Office: 44-1865-203192
> http://www.xmlscript.org/ Mobile: 44-7050-288923
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
--
Craig Noah INTERNET: Craig.Noah@sterling.com
Software Engineer
Computer Associates
1404 Fort Crook Road South Phone: (402) 291-8300 x 284
Bellevue, NE 68005-2969 FAX: (402) 291-4362
Re: Static build
Posted by Michael Mason <mg...@decisionsoft.com>.
Craig Noah wrote:
>
> I know this is not officially supported, but I need to get a static
> build of the Xerces libraries (latest cvs code) on a Solaris 2.6 with
> gcc 2.95.2. Does anyone know what I need to change in the makefile in
> order to make this happen?
Very very unofficially I've got this to work by adding all the .o files
which end up in the obj/ directory to a static library and then using
that. Something like this should do the trick:
ar rv libMyXercesLib.a obj/*.o
ranlin libMyXercesLib.a
This is of course not the Right Way(tm) to do it, but it does work.
Mike.
--
Mike Mason, Software Engineer
XML Script Development Team Office: 44-1865-203192
http://www.xmlscript.org/ Mobile: 44-7050-288923
Re: Static build
Posted by Arundhati Bhowmick <ar...@hyperreal.org>.
Off-the-head that I can think of for solaris is you probably need to add
-B binding as static and -dn switches and remove switches like -G and
-pic. There's a MAKE_SHARED variable in Makefile.incl that needs to be
modified to get this setup.
Arundhati
Craig Noah wrote:
> I know this is not officially supported, but I need to get a static
> build of the Xerces libraries (latest cvs code) on a Solaris 2.6 with
> gcc 2.95.2. Does anyone know what I need to change in the makefile in
> order to make this happen?
>
> Gratefully,
> Craig
>
> --
> Craig Noah INTERNET: Craig.Noah@sterling.com
> Software Engineer
>
> Computer Associates
> 1404 Fort Crook Road South Phone: (402) 291-8300 x 284
> Bellevue, NE 68005-2969 FAX: (402) 291-4362
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org