Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#13475 closed defect (wontfix)

universal_cflags in 10.5 cause linking issue

Reported by: gzjjgod@… Owned by: jmpp@…
Priority: Normal Milestone:
Component: base Version: 1.5.2
Keywords: Cc:
Port:

Description

If we use the default configure.universal_cflags to build universal binary in Mac OS X 10.5, error like

ld: library not found for -lcrt1.10.5.o

will happend. See also http://lists.apple.com/archives/Xcode-users/2007/Oct/msg00686.html

This patch fixed this by adding "-mmacosx-version-min=10.4" into default configure.universal_cflags.

Attachments (1)

portconfigure.tcl.diff (1.1 KB) - added by gzjjgod@… 16 years ago.
patch to portconfigure.tcl

Download all attachments as: .zip

Change History (9)

Changed 16 years ago by gzjjgod@…

Attachment: portconfigure.tcl.diff added

patch to portconfigure.tcl

comment:1 Changed 16 years ago by wsiegrist@…

Component: infrastructureports
Owner: changed from wsiegrist@… to jmpp@…

Not an infrastructure issue. Sending to jmpp for reclassification.

comment:2 Changed 16 years ago by jmpp@…

Component: portsbase
Milestone: MacPorts base bugs

comment:3 Changed 16 years ago by kballard (Lily Ballard)

We target the 10.5 SDK if it exists now, so is this problem still valid?

comment:4 Changed 16 years ago by gzjjgod@…

No, if -isysroot /Developer/SDKs/MacOSX10.5.sdk is used, such linking problem will not happen.

comment:5 in reply to:  3 Changed 16 years ago by afb@…

Resolution: wontfix
Status: newclosed

Replying to eridius@macports.org:

We target the 10.5 SDK if it exists now, so is this problem still valid?

Only if cross-developing, which isn't supported. (or if 10.5 SDK is missing, which isn't either)

comment:6 Changed 16 years ago by mdickens@…

At least in MacPorts 1.6.0, this ticket no longer seems to be an issue.

Ticket #11267 provides a tarball that (at least in my testing) allows for python25 +universal, +framework, +universal+framework, or just plain; for both 10.4 (using the 10.4SDK for +universal) and 10.5 (using the 10.5SDK for +universal); all combinations of variants seem to work correctly. While the resulting binaries using +universal are for "i386" and "ppc", it would not be difficult to add variants to do "ppc64" and "x86_64" (though, of course, 64-bit apps are not well-tested on OSX just yet).

comment:7 Changed 15 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

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

Milestone: MacPorts Future
Note: See TracTickets for help on using tickets.