Help with a Portfile (part 2)

Eric F (iEFdev) eric at iefdev.se
Wed Jan 16 05:36:25 UTC 2019


Thanks for the quick reply…

On 1/16/19 0:35 , Ryan Schmidt wrote:
> Sounds like apxs doesn't like the -arch flag, so don't pass that to it. Maybe using "-Wl,-arch,x86_64" instead of "-arch x86_64" is what you need. Or maybe you don't need an -arch flag at all.
Been doing some trial'n'error here, but I think I've got it to work now. :)

This: build.args LDFLAGS=-L${prefix}/lib
…or: build.args LDFLAGS="-L${prefix}/lib -Wl,-arch,x86_64"

Both works, but neither one works with: -headerpad_max_install_names
(The original line: -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64)

Anything to worry about? Isn't that one something about names on OS X (from
quick web search)?


> Please don't attempt to make the Portfile use gcc. We want to use clang.
No, I won't. :)

· Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20190116/129c784e/attachment.html>


More information about the macports-dev mailing list