Subject:
|
Re: LPub 4 Status
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Wed, 23 Apr 2008 19:20:14 GMT
|
Viewed:
|
14811 times
|
| |
| |
In lugnet.cad.dev, Don Heyse wrote:
|
In lugnet.cad.dev, Travis Cobbs wrote:
|
In lugnet.cad.dev, Don Heyse wrote:
|
Err, I rushed it and sorta botched the build. So a few files got built
with no PPC code. I rebuilt it, but didnt get a chance to borrow an
older machine to test it on yet.
|
Actually, I dont have a PPC Mac, just the previous OS version.
|
Thats interesting. I built it on a new laptop with the version of XCode
that comes with leopard. However I just added the arch targets to the
old makefile (but missed one of the libraries). So I guess the default
is to target leopard only. I suppose I should try to build from an
XCode project and see if its easier to target older OS versions and
CPUs with that.
|
I believe
that if you dont get everything right for the universal stuff, it will
give you an error at link time. I know thats what it does to me if any of
the libraries arent universal and I try to do a universal build.
|
It let me link in an X86 only lib without an error. Maybe there was a
warning, I didnt pay too much attention. I can imagine reasons why
you *might* want a special lib thats only called from the X86 code.
|
|
Hey, maybe (probably) you know this. Whats involved in supporting
a G3, or say OS 10.3? I dont know my way around the compiler switches
well enough yet to turn off altivec or use the older libraries.
|
No idea. I know how to set up the OS setting in XCode, but I dont know
off-hand even how to do that in a Makefile.
|
I found some documentation, but I printed it and dont have it on hand
right now. It sure looks easier to do from the XCode gui though.
|
Since I already lost this once, Im gonna stash it here just in case.
To compile something that runs on Tiger from a makefile on Leopard add
this:
CFLAGS+= -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
LDFLAGS+= -isysroot /Developer/SDKs/MacOSX10.4u.sdk
That should make it build and run with the older Tiger sdk and libs.
Add -arch i386 -arch ppc and I should be able to make a universal
binary for 10.4 and up. (I hope)
Don
|
|
Message has 1 Reply: | | Re: LPub 4 Status
|
| (...) Good idea. (...) I'll be happy to be your Tiger test subject, but I can only test Intel. --Travis (17 years ago, 23-Apr-08, to lugnet.cad.dev, FTX)
|
Message is in Reply To:
| | Re: LPub 4 Status
|
| (...) That's interesting. I built it on a new laptop with the version of XCode that comes with leopard. However I just added the arch targets to the old makefile (but missed one of the libraries). So I guess the default is to target leopard only. I (...) (17 years ago, 21-Apr-08, to lugnet.cad.dev, FTX)
|
81 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|