From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 09D1E2142 for ; Fri, 10 Jun 2016 17:15:24 +0200 (CEST) Received: by mail-wm0-f54.google.com with SMTP id n184so271061445wmn.1 for ; Fri, 10 Jun 2016 08:15:24 -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:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=T2ZeoCyeX0n6QN6k2WHfZ4/DKGOwYnKCfozQJzU0rFQ=; b=cxv8ev4M+mlRwGDeBY3qvr9J8LD2W/ZcElAYpzvaPrh30oWIVbeSdpOq+SI3SPohUo i8kQdXkwVfmEBsb7HMHnJAdU0ZSxDVR2m/PPhj+M/wwQJ+nSPwVknkzZNPLhdSXRv4oo wRluSmCQO759hkSHSg2EIW5AY/12Cn4Ngh//IhPJUbCVGT0oA9+bW804qWc0mIxVJ69o q5u/8wJo0OsnKOGWFFQgPZ0Tb+ebkl0nCijKeMC0uZOheN5vZ+WyaPWQQ4xY2BYr9Rtp TobYjocHBwymwMlSrfmON7F9PwASbtuXRlsccfJUEBklBiMmUE7oVahKiyNl0GJOckB7 yuiw== 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:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=T2ZeoCyeX0n6QN6k2WHfZ4/DKGOwYnKCfozQJzU0rFQ=; b=S3TnGCODOwPCoUA4Ao2srkcNOod9qjbM+/oMD6MAhyslR3EkCto/wfo4XNuK3ey1Q1 vdMlwWr1lpo5d0ETEuN/pl1JxnRXaSQBm9JB7po4573BXaOhS4sDeoSB70M6K+Y4mP8P 2WPapqU63c1NPwmjKagJ5/+HvGHo0YcaXjsdklxaTpDbWLx9Ja9FCggubmn8N1SOLZFB xQzslEkPTm0FMKZsemphvOuV4QJwY7uE4tQeWECdEYeIAy2kVXtqmkJip/N9r6xAAnUJ isDipkxci90FarfFlOc1kqKZULaEOoChYKCT15aV1ZB3Cp7Qb24T18TGde9NJZkVLcI1 Q0HA== X-Gm-Message-State: ALyK8tKLonS+Vg7AbG421y+aslPifCiCwsFfhy6lkKqipD8C8OwCK0Q/OmsAYDxXjQeVeap5 X-Received: by 10.194.25.135 with SMTP id c7mr2636781wjg.63.1465571723846; Fri, 10 Jun 2016 08:15:23 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id s10sm12843706wjt.29.2016.06.10.08.15.22 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Jun 2016 08:15:23 -0700 (PDT) From: Thomas Monjalon To: Ferruh Yigit Cc: dev@dpdk.org Date: Fri, 10 Jun 2016 17:15:22 +0200 Message-ID: <3411743.SUPtex403d@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <575AD536.2060204@intel.com> References: <1464367686-3475-1-git-send-email-ferruh.yigit@intel.com> <1465564749-1405-5-git-send-email-thomas.monjalon@6wind.com> <575AD536.2060204@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2 4/6] mk: prevent overlinking in applications 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, 10 Jun 2016 15:15:24 -0000 2016-06-10 15:56, Ferruh Yigit: > On 6/10/2016 2:19 PM, Thomas Monjalon wrote: > > From: Ferruh Yigit > > > > Replace --no-as-needed linker flag with --as-needed flag, which will > > only link libraries directly called by application. > > It can be achieved now that the libraries dependencies are handled > > properly. [...] > > +# Link only the libraries used in the application > > +LDFLAGS += --as-needed > > For the case we need to have workaround for application, this doesn't > let because last argument wins. > > Can we say as following : > LDFLAGS = --as-needed $(LDFLAGS) It should be LDFLAGS := --as-needed $(LDFLAGS) But I would prefer we avoid workarounds.