Additional parameters in spec file to control package build 35/45835/2
authorNikolai Bozhenov <n.bozhenov@samsung.com>
Thu, 11 Jun 2015 14:20:36 +0000 (17:20 +0300)
committerNikolai Bozhenov <n.bozhenov@samsung.com>
Wed, 12 Aug 2015 08:26:28 +0000 (11:26 +0300)
The following new rpm variables influence options passed to configure:

1) enable_checking=<flag-list> can be used to customize the value of
--enable-checking configure command line option (default=release)
2) enable_bootstrap=1 can be used to enable bootstrap (default=0)

The default configure command (without these new parameters) hasn't
changed.

Change-Id: I16389507b7f148bae02d66d772222b003a5e706b

packaging/cross-aarch64-gcc49.spec
packaging/cross-armv7hl-gcc49.spec
packaging/cross-armv7l-gcc49.spec
packaging/gcc.spec.in
packaging/gcc49.spec

index 767c00b..075eb7e 100644 (file)
@@ -268,7 +268,11 @@ PARALLEL="-j$J -l$JL"
 # In general we want to ship release checking enabled compilers
 # and run BETA with checking enabled.
 #ENABLE_CHECKING="--enable-checking=yes"
+%if 0%{?enable_checking:1}
+ENABLE_CHECKING="--enable-checking=%{enable_checking}"
+%else
 ENABLE_CHECKING="--enable-checking=release"
+%endif
 
 # Work around tail/head -1 changes
 export _POSIX2_VERSION=199209
@@ -310,7 +314,11 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
        --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
        --enable-ssp \
        --disable-libssp \
+%if 0%{?enable_bootstrap:1}
+       --enable-bootstrap  \
+%else
        --disable-bootstrap \
+%endif
 %if 0%{!?build_libvtv:1}
        --disable-libvtv \
 %endif
index d82ae39..90323d2 100644 (file)
@@ -268,7 +268,11 @@ PARALLEL="-j$J -l$JL"
 # In general we want to ship release checking enabled compilers
 # and run BETA with checking enabled.
 #ENABLE_CHECKING="--enable-checking=yes"
+%if 0%{?enable_checking:1}
+ENABLE_CHECKING="--enable-checking=%{enable_checking}"
+%else
 ENABLE_CHECKING="--enable-checking=release"
+%endif
 
 # Work around tail/head -1 changes
 export _POSIX2_VERSION=199209
@@ -310,7 +314,11 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
        --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
        --enable-ssp \
        --disable-libssp \
+%if 0%{?enable_bootstrap:1}
+       --enable-bootstrap  \
+%else
        --disable-bootstrap \
+%endif
 %if 0%{!?build_libvtv:1}
        --disable-libvtv \
 %endif
index ee2a4f6..b77fae5 100644 (file)
@@ -268,7 +268,11 @@ PARALLEL="-j$J -l$JL"
 # In general we want to ship release checking enabled compilers
 # and run BETA with checking enabled.
 #ENABLE_CHECKING="--enable-checking=yes"
+%if 0%{?enable_checking:1}
+ENABLE_CHECKING="--enable-checking=%{enable_checking}"
+%else
 ENABLE_CHECKING="--enable-checking=release"
+%endif
 
 # Work around tail/head -1 changes
 export _POSIX2_VERSION=199209
@@ -310,7 +314,11 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
        --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
        --enable-ssp \
        --disable-libssp \
+%if 0%{?enable_bootstrap:1}
+       --enable-bootstrap  \
+%else
        --disable-bootstrap \
+%endif
 %if 0%{!?build_libvtv:1}
        --disable-libvtv \
 %endif
index f6ca46d..e8edb83 100644 (file)
@@ -18,7 +18,6 @@
 # norootforbuild
 # icecream 0
 
-
 %define build_ada 0
 
 %define quadmath_arch %ix86 x86_64 ia64
@@ -1123,7 +1122,11 @@ PARALLEL="-j$J -l$JL"
 # In general we want to ship release checking enabled compilers
 # and run BETA with checking enabled.
 #ENABLE_CHECKING="--enable-checking=yes"
+%if 0%{?enable_checking:1}
+ENABLE_CHECKING="--enable-checking=%{enable_checking}"
+%else
 ENABLE_CHECKING="--enable-checking=release"
+%endif
 
 # Work around tail/head -1 changes
 export _POSIX2_VERSION=199209
@@ -1165,7 +1168,11 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
        --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
        --enable-ssp \
        --disable-libssp \
+%if 0%{?enable_bootstrap:1}
+       --enable-bootstrap  \
+%else
        --disable-bootstrap \
+%endif
 %if 0%{!?build_libvtv:1}
        --disable-libvtv \
 %endif
index 902f974..f3f2d69 100644 (file)
@@ -18,7 +18,6 @@
 # norootforbuild
 # icecream 0
 
-
 %define build_ada 0
 
 %define quadmath_arch %ix86 x86_64 ia64
@@ -1656,7 +1655,11 @@ PARALLEL="-j$J -l$JL"
 # In general we want to ship release checking enabled compilers
 # and run BETA with checking enabled.
 #ENABLE_CHECKING="--enable-checking=yes"
+%if 0%{?enable_checking:1}
+ENABLE_CHECKING="--enable-checking=%{enable_checking}"
+%else
 ENABLE_CHECKING="--enable-checking=release"
+%endif
 
 # Work around tail/head -1 changes
 export _POSIX2_VERSION=199209
@@ -1698,7 +1701,11 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
        --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
        --enable-ssp \
        --disable-libssp \
+%if 0%{?enable_bootstrap:1}
+       --enable-bootstrap  \
+%else
        --disable-bootstrap \
+%endif
 %if 0%{!?build_libvtv:1}
        --disable-libvtv \
 %endif