From owner-svn-src-all@freebsd.org Fri Dec 25 20:19:42 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 81BCCA52159 for ; Fri, 25 Dec 2015 20:19:42 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-yk0-x232.google.com (mail-yk0-x232.google.com [IPv6:2607:f8b0:4002:c07::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BF26121D for ; Fri, 25 Dec 2015 20:19:42 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-yk0-x232.google.com with SMTP id x67so60167131ykd.2 for ; Fri, 25 Dec 2015 12:19:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuxi-nl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=T2rHvCfbGR+xiiBiSalZPDTzbMR65sXyj9x24OO/C60=; b=Xf8plBTPO7fcyQxsNT+U3bEGwrzrzQDMjcuK4YA3yTvvbGGuEEz8Hn6AQPf6UsDAq2 bUBK5RWFkE6Dp+wL17mavqDlCnYUu1BvbZeOKF+zSsqzVlw/tzmuLAJ23ZWRutm5R4HX DGbo6pC0/TumPmSLnVK9GVYl1KsC30hdsy4bmCWyxIXLzJd1K53upO8Ra3nT311dgCVo ZcoBn66LpdUUkTJNMHiVfDua/gjXjbp8hAp25ALg+954p0W/NTSbeClHZmbu4F0wsQ5q XUJ9r4ep5E+KHxZ9kEbHmCA6bXg3Miv3cZaePl+Vc8/V8FRL+42qG8TAZZFCGn3wew+4 Szrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=T2rHvCfbGR+xiiBiSalZPDTzbMR65sXyj9x24OO/C60=; b=SF8aYMttk7KmG+X5gl3gSmtg2Ei9+BdTofBWCk4f3x2qo+8W086T1O2LfTPk67FtVn R9uC3+YfRAhjzP5wn+ft0nsqSIGohlT6qVrRu9twk4XUjrmfnkPuqIfZB57fWJvBtaht gqPNpSpbBobVkYogmMm75/pp87GsZkzTMa/IRTp9Qt+cwSVw5qhp/LUFz+7F9WdrkAJH fY2y5PR6cRNlXiRZJFI9LEJlGsX/nj/+mVOlkD9n0j2pMwmjAzKMkdS84aF46B+DRQq+ MeLSa9zX5SH+oZjkACdgSOfMNKSFc9/u2hwzZTcCeitplYeX5ATQUL4YBUAFH08Susom IzkQ== X-Gm-Message-State: ALoCoQkM2Ic2sRQWJpP9VBRsoxgpSosF+UYdmqy6++kcdZ/JwXXS7ZNsrO/kSoAimC0Rv0NRNFRvVeu1Zdnu2hJvS/YAVH7bCg== MIME-Version: 1.0 X-Received: by 10.129.157.79 with SMTP id u76mr36928155ywg.123.1451074781286; Fri, 25 Dec 2015 12:19:41 -0800 (PST) Received: by 10.129.91.197 with HTTP; Fri, 25 Dec 2015 12:19:41 -0800 (PST) In-Reply-To: <201512251129.tBPBTIZp058825@repo.freebsd.org> References: <201512251129.tBPBTIZp058825@repo.freebsd.org> Date: Fri, 25 Dec 2015 21:19:41 +0100 Message-ID: Subject: Re: svn commit: r292723 - in head: lib/libc share/mk From: Ed Schouten To: Colin Percival Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 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 20:19:42 -0000 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? -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717