From: Ian Campbell Subject: Re: [PATCH v10 2/5] remus: add libnl3 dependency for network buffering support Date: Fri, 6 Jun 2014 11:07:49 +0100 Message-ID: <1402049269.31120.34.camel@kazak.uk.xensource.com> References: <1401932069-16460-1-git-send-email-yanghy@cn.fujitsu.com> <1401932069-16460-3-git-send-email-yanghy@cn.fujitsu.com> <21392.39022.100253.330973@mariner.uk.xensource.com> <53911E02.6040706@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: rshriram@cs.ubc.ca Cc: Lai Jiangshan , Wen Congyang , Stefano Stabellini , Andrew Cooper , Jiang Yunhong , Ian Jackson , "xen-devel@lists.xen.org" , Dong Eddie , Hongyang Yang , Roger Pau =?ISO-8859-1?Q?Monn=E9?= List-Id: xen-devel@lists.xenproject.org On Fri, 2014-06-06 at 01:45 -0500, Shriram Rajagopalan wrote: > IIRC, starting with GCC 4.6, that check is not needed anyway, because > gcc will prevent unused shared libraries from being linked into libxl. > However, > with earlier GCC versions, these libraries will get linked unless the > -as-needed flag > is supplied. Which was the reason I had that check in place. passing -lfoo is still an error if libfoo.so isn't even present though, right? That's one of the situations which may arise since this is an optional feature. Anyway, I think we still support gcc < 4.6 so we need to keep this conditional stuff around. Ian. >