From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas.monjalon@6wind.com>
Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43])
 by dpdk.org (Postfix) with ESMTP id 0A0ECAFCF
 for <dev@dpdk.org>; Wed, 16 Apr 2014 11:22:35 +0200 (CEST)
Received: by mail-wg0-f43.google.com with SMTP id x13so10520938wgg.26
 for <dev@dpdk.org>; Wed, 16 Apr 2014 02:22:35 -0700 (PDT)
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:organization
 :user-agent:in-reply-to:references:mime-version
 :content-transfer-encoding:content-type;
 bh=eqYQcQP7nuhsV+UrMrL3YBUp1ROeSxArxpQY2FQHJwo=;
 b=ZC3zahbU9u5t2KQ+g1nqO6EN9aHSgNrLL8CeCwn2iMqI1tTSIbAaN4dHeXr1y3d89a
 XxvmWzpuDltfSHNlFovD6iGnjqC9qyFOwIyOw8h6zWljau8B52f9JVvkryf94cQTA0/7
 0CrFbWPcb5lDXPzGHGcq+uAAVuPSSDfCuU0LAlQuWhsPQ6ZxrgfSK8uuom24XUe64pc1
 7t3RfqHqX92lnIKVIW4ska1Tn8V2RHuELq0uccKavcdyOH4aenNDH71yegS9a+HVCiwk
 fOsbMBHSbNzUQ3+RpEk8XJu3oW5OvgoN06wyMOxreaQ8KmgcI3iPwJlqBfmbnOfpi1Gd
 sjjg==
X-Gm-Message-State: ALoCoQmp4BM3VBce1grxszoPSSLFGc7gqcXzla5+TZn9kh/4bqyCNrqIAmdcmfq0VZli7HmrQ25x
X-Received: by 10.194.176.226 with SMTP id cl2mr5916608wjc.55.1397640155609;
 Wed, 16 Apr 2014 02:22:35 -0700 (PDT)
Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.180.237])
 by mx.google.com with ESMTPSA id mw3sm34790722wic.7.2014.04.16.02.22.34
 for <multiple recipients>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 16 Apr 2014 02:22:34 -0700 (PDT)
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Neil Horman <nhorman@tuxdriver.com>
Date: Wed, 16 Apr 2014 11:22:35 +0200
Message-ID: <4354806.0Vn32RcRuD@xps13>
Organization: 6WIND
User-Agent: KMail/4.12.4 (Linux/3.14.1-1-ARCH; KDE/4.12.4; x86_64; ; )
In-Reply-To: <1397585169-14537-2-git-send-email-nhorman@tuxdriver.com>
References: <1397585169-14537-1-git-send-email-nhorman@tuxdriver.com>
 <1397585169-14537-2-git-send-email-nhorman@tuxdriver.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH 01/15] makefiles: Fixed -share command line
	option error
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Apr 2014 09:22:36 -0000

Hi,

2014-04-15 14:05, Neil Horman:
> The shared libraries built with the current makefile set produce static
> libraries rather than actual shared objects.  This is due to several missing
> options that are required to correctly build shared objects using ld, as
> well as a mis-specified -share option (which should be -shared). Switching
> to the use of CC rather than LD and fixing the -shared option corrects
> these problems and builds the DSOs correctly.
> 
> Signed-off-by: Neil Horman <nhorman@tuxdriver.com>

Thanks for fixing -shared option.

Regarding switch to CC linking, please have a look at LINK_USING_CC option.
Maybe you should use it for rte.lib.mk and rte.sharelib.mk.

-- 
Thomas