Finding about another port variants in a Portfile

Vincent Habchi vince at macports.org
Thu Apr 26 22:36:51 PDT 2012


Josh,

> Shouldn't the -arch flags be removed from wherever postgres is recording
> them?

Correct. But this is not done in ${prefix}/lib/postgresql91/pgxs/src/Makefile.global:

-> less /opt/local/lib/postgresql91/pgxs/src/Makefile.global | grep arch

configure_args =  '--prefix=/opt/local' '--disable-dependency-tracking' '--sysconfdir=/opt/local/etc/postgresql91' '--bindir=/opt/local/lib/postgresql91/bin' '--libdir=/opt/local/lib/postgresql91' '--includedir=/opt/local/include/postgresql91' '--datadir=/opt/local/share/postgresql91' '--mandir=/opt/local/share/man' '--with-includes=/opt/local/include' '--with-libraries=/opt/local/lib' '--with-openssl' '--with-bonjour' '--with-readline' '--with-zlib' '--with-libxml' '--with-libxslt' '--enable-thread-safety' '--enable-integer-datetimes' '--with-ossp-uuid' '--with-python' 'CC=/usr/bin/clang' 'CFLAGS=-pipe -O2 -DAC_APPLE_UNIVERSAL_BUILD -arch x86_64 -arch i386' 'LDFLAGS=-L/opt/local/lib -arch x86_64 -arch i386' 'CPPFLAGS=-I/opt/local/include -I/opt/local/include/ossp'
CFLAGS = -pipe -O2 -DAC_APPLE_UNIVERSAL_BUILD -arch x86_64 -arch i386 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv
LDFLAGS += -L/opt/local/lib -arch x86_64 -arch i386 -L/opt/local/lib  -L/opt/local/lib -Wl,-dead_strip_dylibs

---

When building PostGIS, those CFLAGS override the user’s own choice. I’ve filed a bug about this (#33907); there is another bug that interferes also with PostGIS compilation about pg_config.h reporting wrong sizes when built universal (#33739). Both are unfixed.

Vincent


More information about the macports-dev mailing list