From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.4 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 663EC1F66E for ; Sat, 22 Aug 2020 20:54:59 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1k9aXM-0007vj-Na; Sat, 22 Aug 2020 20:54:52 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9aXK-0007vc-Tu for sox-devel@lists.sourceforge.net; Sat, 22 Aug 2020 20:54:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ze9jRNyXUuJt3boaW/fFMI5ycH+sN3YZ2eaE8AB55Lc=; b=da4vIitPnRd5Um7rJtRNOega8X dGnWoJpsL2JhzDXsqrlJsA2yNIOkXBUmZUoWxenns2ld+GivwXC1pj+PKGXZLtPqCUDce3sRhQadw ko1yhSvaVuiCo1OBvwzWRlPPldreVVaHBxEBNWb1OFDJidFVSdb5VmC4iQ8gfysZWNe4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Ze9jRNyXUuJt3boaW/fFMI5ycH+sN3YZ2eaE8AB55Lc=; b=aH4VJCvBptELDJnKn/2j/nDjRy yEBnXAxu1lGJ4Y6tesowxP2iYzTsXNK+WDuJ+Xuy/io4NSwCC8FIN4zu00KVcy5/J2Z7ndRI3mb6r xZUpEhUHKCPtgb/pPoathZKXVe7DBveDO8UO2AsANOA3tYc9tSqRaUOcjvY7p/M1NIf0=; Received: from unicorn.mansr.com ([81.2.72.234]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1k9aXI-0046eQ-P6 for sox-devel@lists.sourceforge.net; Sat, 22 Aug 2020 20:54:50 +0000 Received: from raven.mansr.com (raven.mansr.com [81.2.72.235]) by unicorn.mansr.com (Postfix) with ESMTPS id 2F59F15360; Sat, 22 Aug 2020 21:54:28 +0100 (BST) Received: by raven.mansr.com (Postfix, from userid 51770) id EBEFE21A6F2; Sat, 22 Aug 2020 21:54:27 +0100 (BST) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Jan Stary References: <20200821151610.GA82566@www.stare.cz> <20200821152130.GA6847@www.stare.cz> <20200821174358.GA88757@www.stare.cz> <20200821201758.GA23884@www.stare.cz> <20200821204550.GA67586@www.stare.cz> <20200822081738.GA14321@www.stare.cz> <20200822153545.GA61858@www.stare.cz> Date: Sat, 22 Aug 2020 21:54:27 +0100 In-Reply-To: <20200822153545.GA61858@www.stare.cz> (Jan Stary's message of "Sat, 22 Aug 2020 17:35:45 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Headers-End: 1k9aXI-0046eQ-P6 Subject: Re: Build system cleanup X-BeenThere: sox-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-devel@lists.sourceforge.net Cc: sox-devel@lists.sourceforge.net Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: sox-devel-bounces@lists.sourceforge.net Jan Stary writes: > On Aug 22 11:10:10, mans@mansr.com wrote: >> Jan Stary writes: >> = >> >> C_INCLUDE_PATH=3D/usr/local/include >> >> LIBRARY_PATH=3D/usr/local/lib >> > >> > I never used any of these. >> > Are they docummented anywhere? >> = >> Many compilers/linkers support such environment variables. The gcc >> manual documents them here: >> https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html > > I am not using the gcc compiler. > The default OpenBSD/amd64 compiler is clang. The same settings are used by clang. >> These are the preferred method for indicating the location of libraries > > Where does this information come from? > ./configure says something else. > > If the above is endeed preferrable (which I doubt), > we have to fix configure to stop recommending > something else than the recommended way. > >> since they augment the compiler's default search path without >> interfering with command-line options which are searched first. > > In the same way, ./configure *FLAGS augment the compiler's path(s) > without "interfering" with the environment > - how is one preferable to the other? It's simple. The linker looks for libraries in 1. -L flags, in order 2. The LIBRARY_PATH environment variable 3. Compiled-in defaults, typically /usr/lib and /lib It is the responsibility of the system administrator to configure things in such a way that system libraries are found by the system linker. On normal systems, this is achieved by installing add-on libraries somewhere the linker looks by default, such as /usr/lib, or occasionally by setting the relevant variables in the default environment. If OpenBSD chooses to install packages outside the normal search path of the linker, that's really not a SoX problem. How you inform the linker of their location isn't important, but it's your responsibility to do it one way or another. If one of the possible methods might in some odd circumstance break something, that's also not a SoX problem. Use another one if that's the case. -- = M=E5ns Rullg=E5rd _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel