From: Thomas Monjalon Subject: [PATCH] mk: fix extra options when linking lib through compiler Date: Fri, 20 Nov 2015 15:02:55 +0100 Message-ID: <1448028175-22022-1-git-send-email-thomas.monjalon@6wind.com> Cc: dev@dpdk.org To: olivier.matz@6wind.com Return-path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 1D82E374E for ; Fri, 20 Nov 2015 15:04:27 +0100 (CET) Received: by wmec201 with SMTP id c201so73420141wme.0 for ; Fri, 20 Nov 2015 06:04:27 -0800 (PST) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- mk/rte.lib.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index fcc8e20..06a1519 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 -- 2.5.2