From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Love Subject: Re: avoid wrapper scripts when possible Date: Mon, 06 Nov 2017 15:53:44 +0000 Message-ID: <87k1z3wghj.fsf@albion.it.manchester.ac.uk> References: <87mv44gyfv.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBjig-0003D9-Ki for guix-devel@gnu.org; Mon, 06 Nov 2017 10:53:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBjid-0002rE-HJ for guix-devel@gnu.org; Mon, 06 Nov 2017 10:53:50 -0500 Received: from tranquility.mcc.ac.uk ([130.88.200.145]:29039) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eBjid-0002qe-Ae for guix-devel@gnu.org; Mon, 06 Nov 2017 10:53:47 -0500 In-Reply-To: <87mv44gyfv.fsf@elephly.net> (Ricardo Wurmus's message of "Thu, 02 Nov 2017 22:31:16 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel@gnu.org Ricardo Wurmus writes: > For binaries (like emacs) we=E2=80=99d still create shell wrappers where = needed, > because it=E2=80=99s harder to do this natively. You could link in a constructor function to replace a wrapper that just sets the environment, couldn't you? I've done that at times and it allows you to run gdb directly, for instance. How easy it is presumably depends on how the program is built, e.g. autoconf LIBS. If it's difficult to separate configure and build, you can use a dummy linker script at configure time.