[MacPorts] #33907: Strip -arch flags from ${prefix}/lib/postgresqlXX/pgxs/src/Makefile.global and correct CFLAGS/LDFLAGS

MacPorts noreply at macports.org
Thu Apr 5 08:24:43 PDT 2012


#33907: Strip -arch flags from ${prefix}/lib/postgresqlXX/pgxs/src/Makefile.global
and correct CFLAGS/LDFLAGS
--------------------------------+-------------------------------------------
 Reporter:  vince@…             |       Owner:  mww@…                             
     Type:  defect              |      Status:  new                               
 Priority:  Normal              |   Milestone:                                    
Component:  ports               |     Version:  2.0.4                             
 Keywords:  pgxs postgresql     |        Port:  postgresql91                      
--------------------------------+-------------------------------------------
 Initial disclaimer: This might be better relayed upstream.

 The ${prefix}/lib/postgresqlXX/pgxs/src/Makefile.global which is included
 by the PGXS mechanism defines CFLAGS and LDFLAGS, thereby overriding
 user’s own choice.

 There are two things here:

 1. Transform CFLAGS = and LDFLAGS = into CFLAGS += and LDFLAGS += to avoid
 overriding;

 2. Strip -arch XXX flags of both lines, to avoid forcing universal builds
 of extensions (e.g. postgis).

-- 
Ticket URL: <https://trac.macports.org/ticket/33907>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list