%undefine gcc_profiledbootstrap
%endif
+%ifarch armv7hl
+# Required for correct libgcc and crt* build
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mfpu=neon"
+%endif
+
%{!?gcc_skip_configure:
%{?gcc_dump_configure:patch_configure.pl ..} # Add debug prints into configure
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
%ifarch armv7hl
--with-arch=armv7-a \
--with-tune=cortex-a8 \
+ --with-fpu=neon \
--disable-sjlj-exceptions \
--with-float=hard \
%endif
%{?armv7hl: \
--with-arch=armv7-a \
--with-tune=cortex-a8 \
+ --with-fpu=neon \
--disable-sjlj-exceptions \
--with-float=hard \
} \
%undefine gcc_profiledbootstrap
%endif
+%ifarch armv7hl
+# Required for correct libgcc and crt* build
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mfpu=neon"
+%endif
+
%{!?gcc_skip_configure:
%{?gcc_dump_configure:patch_configure.pl ..} # Add debug prints into configure
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
%ifarch armv7hl
--with-arch=armv7-a \
--with-tune=cortex-a8 \
+ --with-fpu=neon \
--disable-sjlj-exceptions \
--with-float=hard \
%endif
%{?armv7hl: \
--with-arch=armv7-a \
--with-tune=cortex-a8 \
+ --with-fpu=neon \
--disable-sjlj-exceptions \
--with-float=hard \
} \
%undefine gcc_profiledbootstrap
%endif
+%ifarch armv7hl
+# Required for correct libgcc and crt* build
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mfpu=neon"
+%endif
+
%{!?gcc_skip_configure:
%{?gcc_dump_configure:patch_configure.pl ..} # Add debug prints into configure
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
%ifarch armv7hl
--with-arch=armv7-a \
--with-tune=cortex-a8 \
+ --with-fpu=neon \
--disable-sjlj-exceptions \
--with-float=hard \
%endif
%{?armv7hl: \
--with-arch=armv7-a \
--with-tune=cortex-a8 \
+ --with-fpu=neon \
--disable-sjlj-exceptions \
--with-float=hard \
} \
%undefine gcc_profiledbootstrap
%endif
+%ifarch armv7hl
+# Required for correct libgcc and crt* build
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mfpu=neon"
+%endif
+
%{!?gcc_skip_configure:
%{?gcc_dump_configure:patch_configure.pl ..} # Add debug prints into configure
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
%ifarch armv7hl
--with-arch=armv7-a \
--with-tune=cortex-a8 \
+ --with-fpu=neon \
--disable-sjlj-exceptions \
--with-float=hard \
%endif
%{?armv7hl: \
--with-arch=armv7-a \
--with-tune=cortex-a8 \
+ --with-fpu=neon \
--disable-sjlj-exceptions \
--with-float=hard \
} \