title: Changing pg_config
body: <p>I'm facing a very similar problem as <a href="https://stackoverflow.com/questions/3044801/im-trying-to-install-psycopg2-onto-mac-os-10-6-3-it-claims-it-cant-find-stda">I&#39;m trying to install psycopg2 onto Mac OS 10.6.3; it claims it can&#39;t find &quot;stdarg.h&quot; but I can see it&#39;s there; what should I do?</a> (except I'm on OS X 10.7 and PostgreSQL v 9.0.5), and I'm thinking about changing my psql config c-compiler.</p>
  
  <p>When I type pg_config in terminal I get:</p>
  
  <pre><code>BINDIR = /usr/bin
  DOCDIR = /usr/share/doc/postgresql
  HTMLDIR = /Library/WebServer/Documents/postgresql
  INCLUDEDIR = /usr/include
  PKGINCLUDEDIR = /usr/include/postgresql
  INCLUDEDIR-SERVER = /usr/include/postgresql/server
  LIBDIR = /usr/lib
  PKGLIBDIR = /usr/lib/postgresql
  LOCALEDIR = /usr/share/locale
  MANDIR = /usr/share/man
  SHAREDIR = /usr/share/postgresql
  SYSCONFDIR = /private/etc/postgresql
  PGXS = /usr/lib/postgresql/pgxs/src/makefiles/pgxs.mk
  CONFIGURE = '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--prefix=/usr' '--sbindir=/usr/libexec' '--sysconfdir=/private/etc' '--localstatedir=/var/pgsql' '--htmldir=/Library/WebServer/Documents/postgresql' '--enable-thread-safety' '--enable-dtrace' '--with-tcl' '--with-perl' '--with-python' '--with-gssapi' '--with-krb5' '--with-pam' '--with-ldap' '--with-bonjour' '--with-openssl' '--with-libxml' '--with-libxslt' '--with-system-tzdata=/usr/share/zoneinfo' 'CFLAGS=-arch x86_64 -arch i386 -pipe -Os -g -Wall -Wno-deprecated-declarations' 'LDFLAGS=-arch x86_64 -arch i386 -pipe -Os -g -Wall -Wno-deprecated-declarations' 'LDFLAGS_EX=-mdynamic-no-pic'
  CC = gcc
  CPPFLAGS = -I/usr/include/libxml2
  CFLAGS = -arch x86_64 -arch i386 -pipe -Os -g -Wall -Wno-deprecated-declarations -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
  CFLAGS_SL = 
  LDFLAGS = -arch x86_64 -arch i386 -pipe -Os -g -Wall -Wno-deprecated-declarations -Wl,-dead_strip_dylibs
  LDFLAGS_EX = -mdynamic-no-pic
  LDFLAGS_SL = 
  LIBS = -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lm 
  VERSION = PostgreSQL 9.0.5
  </code></pre>
  
  <p>I'm wondering how to change pg_config (so I can set CC = gcc-4.2) or something along those lines.</p>