]> git.droids-corp.org - dpdk.git/commitdiff
mk: fix extra options when linking lib through compiler
authorThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Nov 2015 13:56:56 +0000 (14:56 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Nov 2015 16:16:49 +0000 (17:16 +0100)
When using a linker option not known by the compiler like -rpath,
the library linkage was failing.
It is fixed by prefixing the option with -Wl, as it is done in other
makefiles.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
mk/rte.lib.mk

index fcc8e20f85f6efbe9a71ae01f683d376c38a6f9f..06a151994d212cb33db2590312857ff52a0e1a90 100644 (file)
@@ -68,6 +68,7 @@ ifeq ($(LINK_USING_CC),1)
 # Override the definition of LD here, since we're linking with CC
 LD := $(CC) $(CPU_CFLAGS)
 _CPU_LDFLAGS := $(call linkerprefix,$(CPU_LDFLAGS))
+override EXTRA_LDFLAGS := $(call linkerprefix,$(EXTRA_LDFLAGS))
 else
 _CPU_LDFLAGS := $(CPU_LDFLAGS)
 endif