[MacPorts] #23244: py26-numpy +universal configure or build does not like the -arch option passed to gcc-mp

MacPorts noreply at macports.org
Wed May 12 07:05:56 PDT 2010


#23244: py26-numpy +universal configure or build does not like the -arch option
passed to gcc-mp
-----------------------------------------+----------------------------------
 Reporter:  dave.evans55@…               |       Owner:  mcalhoun@…           
     Type:  defect                       |      Status:  new                  
 Priority:  Normal                       |   Milestone:                       
Component:  ports                        |     Version:  1.8.99               
 Keywords:                               |        Port:  py26-numpy           
-----------------------------------------+----------------------------------

Comment(by vince@…):

 I've attached a shell file called c-wrapper that you can use as a fake C
 compiler to build a universal (two way only: either intel32/64 or
 ppc32/64) numpy. Essentially, it intercepts the arch flags and transform
 them into -m32 or -m64 then calls lipo. It won't build 4-way, neither two-
 way ppc/intel (ppc has precedence over Intel). In order to use it, you'll
 have to change the CC definition in the Portfile to point to where you
 save the file. Note that it can easily be changed into a C++ or Fortran
 wrapper by changing the first two lines, that define the compiler and a
 regular pattern representing source file extension (e.g. \.f for Fortran
 or (\.cxx|\.C) for C++).
 Please test it and tell me.

-- 
Ticket URL: <http://trac.macports.org/ticket/23244#comment:18>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list