From cc118bc9239acdb67dd8af3d8ea64b796f2f5c62706e282b8f0363ec9def9cea Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Fri, 20 Jan 2017 11:01:04 +0000 Subject: [PATCH] Accepting request 451583 from home:ndas:branches:network - Added gcc-6 as default compiler for CRC/mtune & other optimizations. - Added gcc-6 as default compiler for CRC/mtune & other optimizations. OBS-URL: https://build.opensuse.org/request/show/451583 OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=25 --- dpdk-thunderx.changes | 5 +++++ dpdk-thunderx.spec | 9 +++++---- dpdk.changes | 5 +++++ dpdk.spec | 9 +++++---- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/dpdk-thunderx.changes b/dpdk-thunderx.changes index f8c8e26..f03b4dd 100644 --- a/dpdk-thunderx.changes +++ b/dpdk-thunderx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 20 11:01:47 CET 2017 - ndas@suse.de + +- Added gcc-6 as default compiler for CRC/mtune & other optimizations. + ------------------------------------------------------------------- Wed Jan 4 18:11:17 CET 2017 - ndas@suse.de diff --git a/dpdk-thunderx.spec b/dpdk-thunderx.spec index 7d75e09..c205b36 100644 --- a/dpdk-thunderx.spec +++ b/dpdk-thunderx.spec @@ -59,6 +59,7 @@ Source: http://fast.dpdk.org/rel/dpdk-%{version}.tar.xz Patch1: 0001-enic-fix-Type-punning-and-strict-aliasing-warning.patch BuildRequires: doxygen BuildRequires: fdupes +BuildRequires: gcc6 BuildRequires: libnuma-devel BuildRequires: libpcap-devel BuildRequires: zlib-devel @@ -145,7 +146,7 @@ export EXTRA_CFLAGS="%{optflags} -Wformat -fPIC -Wno-error=array-bounds" # the compiler flags used still won't work for all Fedora-supported # machines, but runtime checks in DPDK will catch those situations. -make V=1 O=%{target} T=%{target} %{?_smp_mflags} config +make CC=gcc-6 V=1 O=%{target} T=%{target} %{?_smp_mflags} config setconf CONFIG_RTE_MACHINE '"%{machine2}"' # Disable experimental features @@ -176,11 +177,11 @@ setconf CONFIG_RTE_LIBRTE_DISTRIBUTOR n setconf CONFIG_RTE_LIBRTE_PMD_RING n %endif -make V=1 O=%{target} %{?_smp_mflags} -make V=1 O=%{target} %{?_smp_mflags} doc-api-html +make CC=gcc-6 V=1 O=%{target} %{?_smp_mflags} +make CC=gcc-6 V=1 O=%{target} %{?_smp_mflags} doc-api-html %if %{with examples} -make V=1 O=%{target}/examples T=%{target} %{?_smp_mflags} examples +make CC=gcc-6 V=1 O=%{target}/examples T=%{target} %{?_smp_mflags} examples %endif %install diff --git a/dpdk.changes b/dpdk.changes index f8c8e26..f03b4dd 100644 --- a/dpdk.changes +++ b/dpdk.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 20 11:01:47 CET 2017 - ndas@suse.de + +- Added gcc-6 as default compiler for CRC/mtune & other optimizations. + ------------------------------------------------------------------- Wed Jan 4 18:11:17 CET 2017 - ndas@suse.de diff --git a/dpdk.spec b/dpdk.spec index 01fed52..ef226c9 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -57,6 +57,7 @@ Source: http://fast.dpdk.org/rel/dpdk-%{version}.tar.xz Patch1: 0001-enic-fix-Type-punning-and-strict-aliasing-warning.patch BuildRequires: doxygen BuildRequires: fdupes +BuildRequires: gcc6 BuildRequires: libnuma-devel BuildRequires: libpcap-devel BuildRequires: zlib-devel @@ -142,7 +143,7 @@ export EXTRA_CFLAGS="%{optflags} -Wformat -fPIC -Wno-error=array-bounds" # the compiler flags used still won't work for all Fedora-supported # machines, but runtime checks in DPDK will catch those situations. -make V=1 O=%{target} T=%{target} %{?_smp_mflags} config +make CC=gcc-6 V=1 O=%{target} T=%{target} %{?_smp_mflags} config setconf CONFIG_RTE_MACHINE '"%{machine2}"' # Disable experimental features @@ -173,11 +174,11 @@ setconf CONFIG_RTE_LIBRTE_DISTRIBUTOR n setconf CONFIG_RTE_LIBRTE_PMD_RING n %endif -make V=1 O=%{target} %{?_smp_mflags} -make V=1 O=%{target} %{?_smp_mflags} doc-api-html +make CC=gcc-6 V=1 O=%{target} %{?_smp_mflags} +make CC=gcc-6 V=1 O=%{target} %{?_smp_mflags} doc-api-html %if %{with examples} -make V=1 O=%{target}/examples T=%{target} %{?_smp_mflags} examples +make CC=gcc-6 V=1 O=%{target}/examples T=%{target} %{?_smp_mflags} examples %endif %install