From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=wX+y0KdoUDikz4PIulwrV0cZVH25eog2fG0RtDDjhbs=; b=M0mD8e+RwqTBUEIIrzXz3cYllA2PXTKXqichejA7QLOX32auGrifJCRQA8AO18lpCk yRaGSs+u3e8U5ufrSyTkVJQo9dixWJNXWNPB+Jdaknyb9A40JPy7KM2OPTnYRisN/XWb fE+qWljyfpkuGURzZycCjkcZkZksi7TKseGX3N6seEAwHxk6RFmlvyjq4JqTBZT5Skyb IGdzkerXAVmQ4mzeifIh14zFOxqEOpO/d+R+VN6MzKV4gyQEySzjmV0veAr1LW0tLC1G yaBamU9GKWSD+pJF4KvoHSl538fLQdFWKlfIQQgai2pG9/tFhLoMQWoXk3nz8dRcvtH9 rbTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wX+y0KdoUDikz4PIulwrV0cZVH25eog2fG0RtDDjhbs=; b=EDwmWi+k7q3uPF257Wrh8Br5FMcZ4TUxA7xsUbPPSqUPc2lupfRKU5MFl/z1kJpL5n agMgwkYz7zz4isstraK31AX54zkHDif0bE47DJhSnVg203k5y7+Kmr3H7bDy8icXnrWp DiQZp/uEN4M1rhxic6myqG1/QESZehJzHdlyPcR18R8fdsL/wYrFTnJ45bG8AUhlV4dY HRXo7BrNbsGdFZU+HwXtxSndrvZzRWbPyjrYbPQK2mIdGyQKHUaId6+C3w7vZpUEb5qO x7wd0qB+PJFFhaRXP0HRxw9isKXkd9cqxHWI3k72yOsvfKco1AjLHGNyIwVo5bvZFQ/z p29w== X-Gm-Message-State: ALoCoQkTuPaQw/+dhTk5tFy4fnctZ284UmVmIPxNDHxci9YCpCRyHrt0xEh3EqHEF4DMwvEdAZEI X-Received: by 10.28.216.72 with SMTP id p69mr139468wmg.14.1448028266892; Fri, 20 Nov 2015 06:04:26 -0800 (PST) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id d2sm12830335wjy.16.2015.11.20.06.04.25 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 Nov 2015 06:04:26 -0800 (PST) From: Thomas Monjalon To: olivier.matz@6wind.com Date: Fri, 20 Nov 2015 15:02:55 +0100 Message-Id: <1448028175-22022-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.5.2 Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH] mk: fix extra options when linking lib through compiler X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2015 14:04:27 -0000 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