Opened 9 years ago

Closed 9 years ago

#33907 closed defect (fixed)

Strip -arch flags from ${prefix}/lib/postgresqlXX/pgxs/src/Makefile.global and correct CFLAGS/LDFLAGS

Reported by: Veence (Vincent) Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: pgxs postgresql Cc: mww@…, jyrkiwahlstedt
Port: postgresql91

Description

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;
  1. Strip -arch XXX flags of both lines, to avoid forcing universal builds of extensions (e.g. postgis).

Change History (1)

comment:1 Changed 9 years ago by Veence (Vincent)

Resolution: fixed
Status: newclosed

Fixed in r92935

Note: See TracTickets for help on using tickets.