diff options
Diffstat (limited to 'dev-libs/libpqxx/libpqxx-2.6.7.ebuild')
-rw-r--r-- | dev-libs/libpqxx/libpqxx-2.6.7.ebuild | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-libs/libpqxx/libpqxx-2.6.7.ebuild b/dev-libs/libpqxx/libpqxx-2.6.7.ebuild index 5f0421c..44a72ec 100644 --- a/dev-libs/libpqxx/libpqxx-2.6.7.ebuild +++ b/dev-libs/libpqxx/libpqxx-2.6.7.ebuild @@ -16,6 +16,17 @@ IUSE="" DEPEND="dev-db/libpq" RDEPEND="${DEPEND}" +src_unpack() { + unpack ${A} + # should be safe enough to remove the lines directly from configure, + # since it's copied directly from configure.ac + sed -i \ + -e 's/\(gcc_visibility\)=yes/\1=no/g' \ + -e 's@\(#define PQXX_HAVE_GCC_VISIBILITY 1\)@/* \1 */@g' \ + -e '/-Werror/d' \ + "${S}/configure" || die "sed failed" +} + src_compile() { cd "${S}" |