From owner-freebsd-questions@freebsd.org Wed Oct 16 12:33:09 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6503C1640C7 for ; Wed, 16 Oct 2019 12:33:09 +0000 (UTC) (envelope-from markand@malikania.fr) Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr [80.12.242.128]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46tWsw0vbxz4ftr for ; Wed, 16 Oct 2019 12:33:07 +0000 (UTC) (envelope-from markand@malikania.fr) Received: from postfix.malikania.fr ([5.135.187.121]) by mwinf5d63 with ME id ECZ52100V2dbEiD03CZ6xC; Wed, 16 Oct 2019 14:33:06 +0200 X-ME-Helo: postfix.malikania.fr X-ME-Auth: ZGVtZWxpZXIuZGF2aWRAb3JhbmdlLmZy X-ME-Date: Wed, 16 Oct 2019 14:33:06 +0200 X-ME-IP: 5.135.187.121 Received: from [167.3.108.158] (unknown [77.159.242.250]) by postfix.malikania.fr (Postfix) with ESMTPSA id C5CB02A666 for ; Wed, 16 Oct 2019 14:33:05 +0200 (CEST) Subject: Re: Problems with ld, libc, and "struct stat" To: freebsd-questions@freebsd.org References: <20191015204400.e33c8f62af711e829288ddae@magnetkern.de> <47c27361-4e74-05d1-3343-e39526730d85@malikania.fr> <20191016131552.6fda34292987e22ae78072cc@magnetkern.de> <0f1c70a0-c99a-e494-cf63-d214301f24a1@malikania.fr> <20191016142529.cf8a589e1e9db6d30ea303a4@magnetkern.de> From: David Demelier Message-ID: <0b9d2d5c-6f50-e8fb-e881-8f1e46395edd@malikania.fr> Date: Wed, 16 Oct 2019 14:33:05 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191016142529.cf8a589e1e9db6d30ea303a4@magnetkern.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 46tWsw0vbxz4ftr X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of markand@malikania.fr has no SPF policy when checking 80.12.242.128) smtp.mailfrom=markand@malikania.fr X-Spamd-Result: default: False [3.19 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_MEDIUM(0.98)[0.977,0]; NEURAL_SPAM_LONG(0.47)[0.472,0]; RCVD_IN_DNSWL_NONE(0.00)[128.242.12.80.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; DMARC_NA(0.00)[malikania.fr]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:3215, ipnet:80.12.240.0/20, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.84)[ip: (1.18), ipnet: 80.12.240.0/20(1.38), asn: 3215(1.64), country: FR(-0.00)]; RWL_MAILSPIKE_POSSIBLE(0.00)[128.242.12.80.rep.mailspike.net : 127.0.0.17] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Oct 2019 12:33:09 -0000 Le 16/10/2019 à 14:25, Jan Behrens a écrit : > Can I rely on "-shared" being available also in future versions of > clang/cc? Or is this a deprecated "gcc compatibility" option? Of course you can. It's there since decades and won't vanish. There is absolutely no reasons. As it has it's -static counterpart as well. > Building shared libraries is an important feature, so I'm a bit > surprised there is no documentation on on the "cc -shared" invocation > (other than GCC's documentation), or maybe I'm just looking at the > wrong places? Maybe you or someone else knows where else could I find > any documentation on this? I don't know, but LLVM projects documentation always have been a bit anaemic.