Remove hard-coded options specific to x86_64 archs 07/24107/3
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Tue, 8 Jul 2014 13:17:38 +0000 (15:17 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 9 Jul 2014 08:19:22 +0000 (10:19 +0200)
Change-Id: Ied4e80af6c9a503795455b9250da39b68d28057a
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
proto-meta-Tizen_generic/rpm_tizen_macro/etc/macros.cmake
proto-meta-Tizen_generic/rpm_tizen_macro/lib/tizen_macros
proto-meta-Tizen_generic/rpm_tizen_macro/user/.rpmmacros
proto-meta-Tizen_generic/rpm_tizen_macro/yocto/macro

index 5aaf522..ed88815 100644 (file)
@@ -6,9 +6,6 @@
 %__cmake cmake
 
 %cmake \
-  CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
-  CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
-  FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
   %__cmake \\\
         -DCMAKE_VERBOSE_MAKEFILE=ON \\\
         -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
index b0f797b..55a2910 100644 (file)
   find %{?buildroot:%{buildroot}} -regex ".*\\.la$" | xargs rm -f -- \
   %{!?keepstatic:find %{?buildroot:%{buildroot}} -regex ".*\\.a$" | xargs rm -f --}
 
-%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
-        && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
-        [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS")
+%_smp_mflags \${PARALLEL_MAKE}
 
 %lang_package(n:f:) \
 %package %{-n:-n %{-n*}-}locale \
index 096a8bf..cfb7911 100644 (file)
 %define _with_wayland 1
 %define _with_mesa 1
 
-
-
 %define _with_wayland 1
 %define _with_tizen 1
 %define _with_mesa 1
 %define _wrt_option_bluetooth 1
 %define _wrt_option_msg_port 1
 %define _wrt_option_call_history 1
+
+%optflags \${CFLAGS}