%bcond_without gtk3 # GTK+ 3.x instead of 2.x
%bcond_without kerberos # disable krb5 support
%bcond_without official # official Firefox branding
-%bcond_without pgo # PGO-enabled build (requires working $DISPLAY == :100)
+%bcond_with pgo # PGO-enabled build (requires working $DISPLAY == :100)
# - disabled shared_js - https://bugzilla.mozilla.org/show_bug.cgi?id=1039964
%bcond_with shared_js # shared libmozjs library [broken]
%bcond_without system_icu # build without system ICU
cat << 'EOF' > .mozconfig
. $topsrcdir/browser/config/mozconfig
+export CC="%{__cc}"
+export CXX="%{__cxx}"
export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64"
ac_add_options --enable-crash-on-assert
%else
ac_add_options --disable-debug
-ac_add_options --enable-optimize="%{rpmcflags} -Os"
+ac_add_options --enable-optimize="%{rpmcflags}%{?with_pgo: -Os}"
%endif
ac_add_options --disable-strip
ac_add_options --disable-install-strip