On 02/02/2011 11:48 AM, AJ ONeal wrote:
> I'd like to have a makefile that works for both Linux and OS X which
> produces a *.so.
Aren't OS X shared libraries .dylib?
> It seems that in Linux I have to use -Wl as a prefix to -soname
> ${CC} -shared -Wl,-soname....
>
> But on OS X I must omit the "-Wl"
> ${CC} -shared -soname...
>
> Any idea how I can make them both happy?
This is the type of thing that libtool was sort of meant to solve,
albeit probably not as cleanly as it ought to be.
If you use something like cmake or qmake, I'm sure what you need to do
is a lot easier than with a straight Makefile.
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list