summaryrefslogtreecommitdiff
path: root/mk/internal
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2014-04-29 09:57:38 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-05-01 22:57:47 +0200
commit221fb04df9418e09228655d3ab4c75c3120ff47d (patch)
treed6325c02dc8fb4dbd0d01ff2147ae6afd36e902e /mk/internal
parentef4fb79bee3877f056f8c46e7f9cade556b8ad05 (diff)
downloaddpdk-221fb04df9418e09228655d3ab4c75c3120ff47d.zip
dpdk-221fb04df9418e09228655d3ab4c75c3120ff47d.tar.gz
dpdk-221fb04df9418e09228655d3ab4c75c3120ff47d.tar.xz
mk: fix build ignoring other installed versions
If some DPDK libraries are installed on the system, the linker was trying to use them before searching in -L path. The obscure reason is that we were prefixing -L with -Wl, to pass it directly to the linker. But -L is also a gcc option. And allowing gcc to process this option fixes the issue. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
Diffstat (limited to 'mk/internal')
-rw-r--r--mk/internal/rte.build-pre.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/mk/internal/rte.build-pre.mk b/mk/internal/rte.build-pre.mk
index d748189..d5ddbfa 100644
--- a/mk/internal/rte.build-pre.mk
+++ b/mk/internal/rte.build-pre.mk
@@ -30,3 +30,6 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
_BUILD_TARGETS := _prebuild _build _postbuild
+
+comma := ,
+linkerprefix = $(subst -Wl$(comma)-L,-L,$(addprefix -Wl$(comma),$1))