"PRABHU, ANANTHA (STSD)" <[EMAIL PROTECTED]> writes:
> Could some one give me instructions about building the static xerces
> library?

Here is an ugly one-liner that assumes that g++ is being used to build
dynamic libs with .so suffixes.

make -n XML_LIB_DIR=$XERCESCROOT/lib/dummy | grep 'g++ .*\.so' | tr \  \\n | grep 
'\.o$' | ( cd ../../obj ; xargs ar rcs $XERCESCROOT/lib/libxerces-c.a )

Here it is again with extra newlines in case this message gets mangled.

make -n XML_LIB_DIR=$XERCESCROOT/lib/dummy |
  grep 'g++ .*\.so' |
  tr \  \\n |
  grep '\.o$' |
  ( cd ../../obj ; xargs ar rcs $XERCESCROOT/lib/libxerces-c.a )

The logic is

make prints out what to do to make the dynamic libs
grep singles out the link lines
tr translates space into newlines so that each object is on one line
grep finds the object files
xargs passes the list of object files to ar

-- 
Pete Forman                -./\.-  Disclaimer: This post is originated
WesternGeco                  -./\.-   by myself and does not represent
[EMAIL PROTECTED]    -./\.-   opinion of Schlumberger, Baker
http://petef.port5.com           -./\.-   Hughes or their divisions.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to