[Pythonmac-SIG] 64-bit single arch framework build
Ronald Oussoren
ronaldoussoren at mac.com
Thu Sep 25 09:56:41 CEST 2008
Please file a bug on the python bugtracker, otherwise your patch might
get lost.
Ronald
On 24 Sep, 2008, at 21:45, Chris Kees wrote:
> Hi,
>
> Our group ended up needing a non-universal x86_64 framework build
> because
> we had trouble building some modules with the non-framework build.
> We had
> to modify the makefile in two places to get it to work. First we
> fixed a
> place where configure generates '-arch_only i386'. That fixes the
> the build
> phase. Then we got rid of some install targets that were trying to
> pull in
> Carbon code.
>
> The first problem seems like it could easily be fixed by somebody who
> understands the configure script.
>
> I'm not sure what's going on with the second problem. Is
> --disable-toolbox-glue not being handled correctly when the install
> target
> is generated? It seems like the build phase is skipping the Carbon
> dependent
> extension modules correctly but install is trying to pull in modules
> that
> depend on those disabled modules. FYI, here's what were doing:
>
> ./configure --prefix=${HOME} --with-cxx-main='/usr/bin/mpicxx -arch
> x86_64'\
> --enable-framework=${HOME} --disable-toolbox-glue CC='/usr/bin/mpicc
> -arch \
> x86_64' CXX='/usr/bin/mpicxx -arch x86_64' LDFLAGS='-framework
> Accelerate \
> -arch x86_64'
>
> Edit Makefile to replace -arch_only i386 with -arch_only x86_64 and
> remove
> frameworkinstallmaclib and frameworkinstallapps from the altinstall:
> target.
>
> diff Makefile Makefile~
> 457c457
> < -lSystem -lSystemStubs -arch_only x86_64 -install_name
> $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
> -compatibility_version $(VERSION) -current_version $(VERSION) ;\
> ---
>> -lSystem -lSystemStubs -arch_only i386 -install_name
> $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
> -compatibility_version $(VERSION) -current_version $(VERSION) ;\
> 741c741
> < sharedinstall oldsharedinstall
> frameworkaltinstallunixtools
> ---
>> sharedinstall oldsharedinstall frameworkinstallmaclib
> frameworkinstallapps frameworkaltinstallunixtools
>
More information about the Pythonmac-SIG
mailing list