-shared
Bradley Giesbrecht
brad at pixilla.com
Fri Aug 6 17:29:43 PDT 2010
On Aug 6, 2010, at 5:27 PM, Bradley Giesbrecht wrote:
> I read that -shared is ignored by Apples gcc compiler.
>
> man gcc says not supported.
> ...
> -shared
> Produce a shared object which can then be linked with
> other objects to form an executable. Not all systems support this
> option. For predictable
> results, you must also specify the same set of options
> that were used to generate code (-fpic, -fPIC, or model suboptions)
> when you specify this
> option.[1]
>
> This option is not supported on Mac OS X.
> ...
>
> The final command of my port looks like this and the result seems to
> be working.
>
> cc -c -dynamiclib -fno-common -undefined dynamic_lookup -fPIC -
> shared -Wall -Wextra ......
>
> I can patch the -shared out but if it is safely ignored I'd rather
> not because I'm trying to get a patch excepted upstream and for some
> to other lines and would rather have as little impact as necessary.
Good grief, "trying to get a patch accepted upstream" :)
> Can anyone confirm that -shared will just be ignored by Apple gcc
> and thereby be safe in our MacPorts environment?
>
>
> Regards,
> Bradley Giesbrecht
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20100806/e054d301/attachment.html>
More information about the macports-dev
mailing list