From owner-svn-src-head@freebsd.org Fri Dec 25 20:19:42 2015 Return-Path: Delivered-To: svn-src-head@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 7E27FA52158 for ; Fri, 25 Dec 2015 20:19:42 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-yk0-x22c.google.com (mail-yk0-x22c.google.com [IPv6:2607:f8b0:4002:c07::22c]) (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 4BC97121A for ; Fri, 25 Dec 2015 20:19:42 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-yk0-x22c.google.com with SMTP id p130so245700564yka.1 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=eSFcYNNVJNJimx8rL0IaX9+M0xyimTreRoyHa4Ov2f9T1miDO4OjlJgxUupkVHBH+Q 9XaoLK3jJC5oREI7aO/WAf3at7UIZiXrm3Zti+lYxXwfSktYlD5L+o7NqZaWpxP4KCro hvRNUD6c4lrUKopALpw0w7OCC/bBvY0MngK4jTL99txw8adXCxX59Ax/1LTdvNwFCXnE W9O5A3A6Cl2R4UJVbpn3U3dgMJyJ4O9TiSZdo++5di5j9+kwiTJ76Q6pHGleg87OuovH 1E5853TI0en8Kg23kIjY0YllGf1NSDKYrdPaiRSNPwDY1gT2/Jn2S8VvXDCD6Y9ZVyzY rR+A== X-Gm-Message-State: ALoCoQl5BVbc0cDXukxb9Wsc5HPCi5uWtwm7ZhhAJ8XAO/qB4/p56NAe4tmPsHuy7rA+bnjnAh9snvvsj+8sFLGXWAAxAUEoCw== 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-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current 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