Building and linking shared libaries for multiple differentversions
of UNIX
David Collier-Brown
davecb at canada.sun.com
Wed May 16 12:19:03 GMT 2001
Richard Sharpe wrote:
>
> 1. Do the flags for generating PIC differ from system to system, esp if
> using the native compilers?
Slightly: Solaris SC6.1 defines -K PIC and -K pic,
and allows you to say -KPIC and -Kpic. You should
always say PIC, not pic, as the small library option
is only for **quite** small libraries. Smbwrappers
is on th verge of overflowing it.
> If so, I imagine I can get away with defining the appropriate flags
> (PICFLAGS) and passing them to the compiler in Makefile.
That's what I do.
>
> 2. Can I get away with defining something like SOLDFLAGS, and simply pass
> that to $(LD)?
Yes, for Solaris and Linux.
--dave
--
David Collier-Brown, | Always do right. This will gratify
Performance & Engineering Team | some people and astonish the rest.
Americas Customer Engineering | -- Mark Twain
(905) 415-2849 | davecb at canada.sun.com
More information about the samba-technical
mailing list