Skip to content

Building macosx backend ignores arch flags #471

@fonnesbeck

Description

@fonnesbeck

Building MPL on OSX 10.7 using the current github code fails because of an architecture incompatibility (see below). The problem is, I have ARCH_FLAGS set to x86_64, explicitly leaving out i386. Nevertheless, the build includes the i386 flag:

g++-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -Wl,-F. -arch i386 -arch x86_64 -arch x86_64 -L/Users/fonnescj/Code/lib -syslibroot,/Developer/SDKs/MacOSX10.7.sdk -arch x86_64 -I/Users/fonnescj/Code/include -I/Users/fonnescj/Code/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.7.sdk -I/Users/fonnescj/Developer/include build/temp.macosx-10.7-intel-2.7/src/_macosx.o build/temp.macosx-10.7-intel-2.7/CXX/cxx_extensions.o build/temp.macosx-10.7-intel-2.7/CXX/cxxextensions.o build/temp.macosx-10.7-intel-2.7/CXX/cxxsupport.o build/temp.macosx-10.7-intel-2.7/CXX/IndirectPythonInterface.o build/temp.macosx-10.7-intel-2.7/src/agg_py_transforms.o build/temp.macosx-10.7-intel-2.7/src/path_cleanup.o -lstdc++ -lm -o build/lib.macosx-10.7-intel-2.7/matplotlib/backends/_macosx.so -framework Cocoa
ld: warning: ignoring file build/temp.macosx-10.7-intel-2.7/src/_macosx.o, file was built for unsupported file format which is not the architecture being linked (i386)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions