From: Thomas Monjalon Date: Fri, 20 Nov 2015 13:56:56 +0000 (+0100) Subject: mk: fix extra options when linking lib through compiler X-Git-Tag: spdx-start~8024 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4e76dec07d374380b99a413bb2a8e5ab81324695;p=dpdk.git mk: fix extra options when linking lib through compiler 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 Acked-by: Olivier Matz --- diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index fcc8e20f85..06a151994d 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -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