Opened 14 years ago

Closed 14 years ago

#27379 closed defect (fixed)

lua @5.1.4 does not obey build_arch

Reported by: corwin.amber@… Owned by: pmq@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: lua

Description

When using this setting in macports.conf:

universal_archs                 x86_64 i386
macosx_deployment_target        10.5

MacPorts builds and installs liblua.a using gcc-4.0 without any arch flags, resulting in i386 binaries which is the default for this compiler.

Compare, for example, the port quvi - which compiles as x86_64 with the same settings. As a consequence, quvi fails to link properly with liblua.a.

Everything is ok, though, when lua is built with +universal.

Change History (3)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to pmq@…
Summary: lua @5.1.4 builds 32-bit binaries when macosx_deployment_target == 10.5lua @5.1.4 does not obey build_arch

Please remember to cc the maintainer. I take it your build_arch is x86_64? If you're not using +universal, then universal_archs is irrelevant.

comment:2 Changed 14 years ago by corwin.amber@…

Sorry about that. My build_arch is not set in macports.conf, which according to the documentation in there is set to x86_64 by default if you're running on a 64-bit CPU and your OS supports it; which seems to be the case for every single port I compiled save this one. I only added the line universal_archs x86_64 i386 to explain why it does work with +universal.

Actually now I notice that the comment above build_archs is rather ambiguous in the sense that it's not clear if the OS being referred to is the user's own or the one set in macosx_deployment_target.

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.