Building and linking shared libaries for multiple different versions of UNIX

Richard Sharpe sharpe at ns.aus.com
Wed May 16 07:28:25 GMT 2001


Hi,

Reality has hit, now that libsmbclient is being built on the build farm
that Andrew has put together.

The sections I have added to Makefile.in to build shared libraries are
don't work. They are specific to Linux :-)

I have to figure out some ways of making this portable so I can build
shared libraries for lots of combinations.

I do not want to force libtool on the Samba team, so I need to use other
techniques.

Andrew has suggested that I need scripts to do the linking, and obviously,
I need some configure test scripts to check if I can build shared libraries
on each of the architectures we build for ... but I have some questions:

1. Do the flags for generating PIC differ from system to system, esp if
using the native compilers?

If so, I imagine I can get away with defining the appropriate flags
(PICFLAGS) and passing them to the compiler in Makefile.

2. Can I get away with defining something like SOLDFLAGS, and simply pass
that to $(LD)?

3. Any hints would be appreciated ... I think I will go and look at CUPS to
see if Michael Sweet has dealt with this before.

Regards
-------
Richard Sharpe, sharpe at ns.aus.com
Samba (Team member, www.samba.org), Ethereal (Team member, www.ethereal.com)
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba






More information about the samba-technical mailing list