Help With Link Parameters

Michael Franz mvfranz at gmail.com
Sun Apr 6 18:43:16 PDT 2008


Hi,

I am having problems converting the linux linking command to a OS X
equivalent.  Can anyone here help?

echo | $(CC) $(CFLAGS) -fpic -shared \
            -o $$shared_object \
            -Wl,-soname,$$shared_object -xc - ;
My attempt is like this:
echo | $(CC) $(CFLAGS) -fPIC -dynamiclib \
            -o $$shared_object \
            -Wl,-dynamic $$shared_object -xc - ;

The purpose it to generate empty shared libraries.

Thanks for any help you can offer on this.

Michael

PS.  I had this working but lost the code since I removed the wrong
directory.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20080406/f62bacf2/attachment.html


More information about the macports-users mailing list