From 03ddff35e1685335d87eea1708784703011c09b1 Mon Sep 17 00:00:00 2001 From: Marcin Banasiak Date: Mon, 1 Oct 2012 18:50:48 +0200 Subject: [PATCH] Use sed to replace -g2 with -g1 --- gtk-webkit3.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gtk-webkit3.spec b/gtk-webkit3.spec index 94f0203..2846d5c 100644 --- a/gtk-webkit3.spec +++ b/gtk-webkit3.spec @@ -67,8 +67,6 @@ Requires: pango >= 1:1.21.0 %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define filterout -g2 - %description gtk-webkit3 is a port of the WebKit embeddable web component to GTK+ 3. @@ -115,8 +113,8 @@ Dokumentacja API WebKita. # replace -g2 with -g1 to not run into 4 GB ar format limit # https://bugs.webkit.org/show_bug.cgi?id=91154 # http://sourceware.org/bugzilla/show_bug.cgi?id=14625 -export CFLAGS="%{rpmcflags} -g1" -export CXXFLAGS="%{rpmcxxflags} -g1" +export CFLAGS="%(echo %{rpmcflags} | sed 's/ -g2/ -g1/g')" +export CXXFLAGS="%(echo %{rpmcxxflags} | sed 's/ -g2/ -g1/g')" %configure \ --disable-silent-rules \ %{__enable_disable introspection} \ -- 2.44.0