Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Compiling Zsh for Mac PowerPC and Intel
- X-seq: zsh-users 14069
- From: "William G. Scott" <wgscott@xxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Compiling Zsh for Mac PowerPC and Intel
- Date: Sat, 25 Apr 2009 22:07:30 -0700
- Cc: Zsh Users List <zsh-users@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=yRnslo8WTlhsotxayqSGfa4wMKHYpLqIg/yk6bJTNvw=; b=fZf4SJKTCgVX3EFjK9ELessNdspVKWPR3Kaein2OmIX5RvF3IU1XydcJWLdRVnFT9X TMWshsOFKpQJ/x7HH2LXt3O+Aj++EPDfr8RO8EXFCryH6lBv+vTPLe3+Lpd0DWIpC4pp jNmLMSRUTXBx8FT/xNbJUxMoCZwD+Wq6ocN10=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=DW0bfR02SNxRr7FMnLO4VAJR9Sq1Z3501NL/qIKV2mWn261rB2Aqq9iaOn1THlWozV 66oGNg9DH67HvHrvYSl3xOBPvTs05a9jrczF6lB9xgy4bKB136oSP5693cIEvbaAwjD8 lO8ULzotslMJpSgZ0QcJ948cwIEtyDgTPn3c8=
- In-reply-to: <090422080905.ZM17292@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <d2ecb10b0904220631n4e9e256ctf2250acab9f73ca3@xxxxxxxxxxxxxx> <090422080905.ZM17292@xxxxxxxxxxxxxxxxxxxxxx>
- Sender: "W. G. Scott" <wgscott1@xxxxxxxxx>
On Apr 22, 2009, at 8:09 AM, Bart Schaefer wrote:
On Apr 22, 9:31am, TjL wrote:
}
} My question is, how do I compile zsh so I end up with a
"universal" binary?
I'm no expert, but "man cc" seems to indicate that you have to pass
the
-arch option to the compiler multiple times.
This did it for me:
make clean
make CFLAGS='-arch i386 -arch ppc -arch ppc64' LDFLAGS='${CFLAGS}'
And now:
schaefer[398] file Src/zsh
Src/zsh: Mach-O universal binary with 3 architectures
Src/zsh (for architecture i386): Mach-O executable i386
Src/zsh (for architecture ppc7400): Mach-O executable ppc
Src/zsh (for architecture ppc64): Mach-O 64-bit executable ppc64
I have no idea whether it'll actually *run* on all three platforms.
I compiled on intel and tested it on ppc (both 10.5) and it works as
advertised. Haven't tried 64-bit yet, but I am glad to see that it
will be this easy...
dev3 compiles fine on ppc and intel 10.5, fwiw.
Bill
William G. Scott
Contact info:
http://chemistry.ucsc.edu/~wgscott/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author