dpdk.spec: Do not honor environmental IDs for RTE_SDK, etc.
As part of the dpdk solution, we include an extensible profile option which automatically configures the dpdk 'RTE' environment variables. However, these will create build issues if we attempt to build packages on a machine which has these packages installed. To combat this, we undefine these variables in the build environment. Signed-off-by: Aaron Conole <aconole@redhat.com> Acked-by: Neil Horman <nhorman@redhat.com> Acked-by: Panu Matilainen <pmatilai@redhat.com>
This commit is contained in:
parent
a199da43d0
commit
24952bd83d
@ -91,6 +91,9 @@ sed -i 's:^CONFIG_RTE_BUILD_SHARED_LIB=n$:CONFIG_RTE_BUILD_SHARED_LIB=y:g' confi
|
||||
|
||||
|
||||
%build
|
||||
# In case dpdk-devel is installed, we should ignore its hints about the SDK directories
|
||||
unset RTE_SDK RTE_INCLUDE RTE_TARGET
|
||||
|
||||
# For the release, '-Wno-error=array-bounds' is done to prevent a spurious error
|
||||
# generated by gcc 5.X against the 2.1 branch
|
||||
export EXTRA_CFLAGS="%{optflags} -Wformat -fPIC -Wno-error=array-bounds"
|
||||
|
Loading…
Reference in New Issue
Block a user