From owner-svn-src-all@freebsd.org Fri Dec 25 21:03:23 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DE8B5A52BD2; Fri, 25 Dec 2015 21:03:23 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.netplex.net", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A8A51144D; Fri, 25 Dec 2015 21:03:23 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.15.1/8.15.1/NETPLEX) with ESMTP id tBPL3GRx060877; Fri, 25 Dec 2015 16:03:16 -0500 X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.4.3 (mail.netplex.net [204.213.176.9]); Fri, 25 Dec 2015 16:03:16 -0500 (EST) Date: Fri, 25 Dec 2015 16:03:16 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net Reply-To: Daniel Eischen To: Ed Schouten cc: Colin Percival , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r292723 - in head: lib/libc share/mk In-Reply-To: Message-ID: References: <201512251129.tBPBTIZp058825@repo.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Dec 2015 21:03:24 -0000 On Fri, 25 Dec 2015, Ed Schouten wrote: > Hi Colin, > > First of all: I Am Not A Linker Expert. > > 2015-12-25 12:29 GMT+01:00 Colin Percival : >> Make libxnet.so a symlink to libc.so. This makes `-lxnet` a no-op, as >> POSIX requires for the c99 compiler. > > I seem to remember I had some issues in the past where I was linking > against libc explicitly. Maybe it had something to do with linking > both against -lpthread and -lc, but if you pass in -lc later on the > command line, libc overrides the symbols that have to be provided by > -lpthread? > > If that's (still) the case, would it make sense to just provide > libxnet in the form of an empty .a file instead? I think that's a good point. Using -lanything shouldn't introduce an unexpected link order. -- DE