Something like this worked for me once. ifeq ($(shell uname), Darwin) MACFLAG=-WI else MACFLAG= endif
On Wed, Feb 2, 2011 at 11:48 AM, AJ ONeal <[email protected]> wrote: > I'd like to have a makefile that works for both Linux and OS X which > produces a *.so. > > > 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? > > AJ ONeal > > -------------------- > 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 >
-------------------- 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
