]> git.proxmox.com Git - mirror_ovs.git/commitdiff
dpif-netdev/avx512: add -fPIC flag to enable shared builds
authorHarry van Haaren <harry.van.haaren@intel.com>
Wed, 29 Jul 2020 10:59:33 +0000 (11:59 +0100)
committerIan Stokes <ian.stokes@intel.com>
Wed, 5 Aug 2020 14:57:34 +0000 (15:57 +0100)
In certain scenarios with OVS built with --enable-shared and
DPDK enabled as shared build too, Position Independant Code
is required to link the avx512.a file into the relocatable .so
that it must be linked into.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
lib/automake.mk

index 218dc73135b34393be44a1ea50e2331577592489..380a672287ac026f73662afd02b41938d81500c9 100644 (file)
@@ -34,6 +34,7 @@ lib_libopenvswitchavx512_la_CFLAGS = \
        -mavx512bw \
        -mavx512dq \
        -mbmi2 \
+       -fPIC \
        $(AM_CFLAGS)
 lib_libopenvswitchavx512_la_SOURCES = \
        lib/dpif-netdev-lookup-avx512-gather.c