From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id C6AB9694A for ; Sun, 26 Jun 2016 18:42:17 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id v199so73582849wmv.0 for ; Sun, 26 Jun 2016 09:42:17 -0700 (PDT) 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:in-reply-to:references; bh=e/KMXFVXKNu/AmbtjViz3mbeLAgevss1GXkiVS0v62Y=; b=VQQ/FUFL96SuqL3uA+AQBSjSHflPbHGIsRkvlqwkX4Ub+NdDuDzfTBtJ9zex7XVaGY lBQXEsImljARtNyz1v3nn83SP0Ov0AtDQq8j8/C8hLUvfhe0j6S/WWxlq/BAWn5PoXlU HMhMAeH0wn4qaEwuRyREmvxHm2XVVvJiQnMetMgHHoiL4SGBbXUsXYlo2/KfFTpG/QQG s7MMzjChG/++cr+L847bLBCDW8+hfAzH/w5gmuF7pPqN/gIEBytBLeRNKDyM30RVl0z4 Jeh3fAYfvmxg1doRWJDSTK2c5kj0777sXpgc8Iip+jQ9Q5/4H44VaNn16x0g1HDKn+Ur ihVQ== 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:in-reply-to :references; bh=e/KMXFVXKNu/AmbtjViz3mbeLAgevss1GXkiVS0v62Y=; b=Aqewjb2+dKaf+4QL98pWzhbpCT0SjF8VJNdHcJIguQb6HDRHlaIk66xpv5z0SMtad3 i1WuwQBN6T+eHzcNr/NoxNzvt5uo2BbXQ3971xGL8gUIaGXPvDNsf3jnheIaetYN0Si7 3qO86XBhWLaiPns6PBe+sEemB5bgXMox5OFFlcpZmxeO0tQGfYFyJO9kDauQC97yoUcf Agaoh5zmGMoJtHZEMsF8ksbmBoP7xUMbSD2eK4U9tln3czrnPUlnfCiXimC0WxX8vjj4 LL53dVnFoGSOxKsDUiRi7A1x7tMfwFp/OyFTTNldibOIopP/xhDXHHQ8rQHcqe21HBDy IXYw== X-Gm-Message-State: ALyK8tJaZ2XnDW+fvL7IK22H7Pzi/W/UUNiYEsElEvj0PvWa+l54sDLj11+yDdDwi8e65xVS X-Received: by 10.194.157.162 with SMTP id wn2mr13480835wjb.103.1466959337556; Sun, 26 Jun 2016 09:42:17 -0700 (PDT) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id bh7sm7390424wjb.22.2016.06.26.09.42.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Jun 2016 09:42:16 -0700 (PDT) From: Thomas Monjalon To: Panu Matilainen Cc: dev@dpdk.org Date: Sun, 26 Jun 2016 18:42:05 +0200 Message-Id: <1466959325-9426-8-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1466959325-9426-1-git-send-email-thomas.monjalon@6wind.com> References: <1466959325-9426-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH v2 7/7] mk: check shared library dependencies 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: Sun, 26 Jun 2016 16:42:18 -0000 From: Panu Matilainen Require all symbols used by a DSO to be resolvable via LDLIBS at build-time. Previously it was possible to build a library with incomplete dependencies which could then fail at run-time. Signed-off-by: Panu Matilainen --- mk/rte.lib.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index 924dfb5..0187ae8 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -94,7 +94,7 @@ O_TO_A_DO = @set -e; \ echo $(O_TO_A_CMD) > $(call exe2cmd,$(@)) O_TO_S = $(LD) -L$(RTE_SDK_BIN)/lib $(_CPU_LDFLAGS) $(EXTRA_LDFLAGS) \ - -shared $(OBJS-y) $(LDLIBS) -Wl,-soname,$(LIB) -o $(LIB) + -shared $(OBJS-y) -z defs $(LDLIBS) -Wl,-soname,$(LIB) -o $(LIB) O_TO_S_STR = $(subst ','\'',$(O_TO_S)) #'# fix syntax highlight O_TO_S_DISP = $(if $(V),"$(O_TO_S_STR)"," LD $(@)") O_TO_S_DO = @set -e; \ -- 2.7.0