--- /usr/portage/dev-db/postgresql-server/postgresql-server-8.4.4-r1.ebuild 2010-08-11 15:37:13.000000000 -0400 +++ postgresql-server-8.4.4-r1.ebuild 2010-11-17 16:25:10.190039709 -0500 @@ -58,6 +58,9 @@ epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \ "${FILESDIR}/postgresql-${SLOT}-server.patch" + sed -e "s/\(\$(CC) \)\(.*\)/\1\$(CFLAGS) \$(LDFLAGS) \$(LDFLAGS_SL) \2/" \ + -i src/makefiles/Makefile.linux + if use test; then sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source else