From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ALKDARb4qGAHEgEAgWs5BA (envelope-from ) for ; Sat, 22 May 2021 14:24:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CNPNOBX4qGAZJAAAbx9fmQ (envelope-from ) for ; Sat, 22 May 2021 12:24:53 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B0F9F29C39 for ; Sat, 22 May 2021 14:24:53 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 589562A9F4; Sat, 22 May 2021 08:24:50 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id AAFE42A9A9 for ; Sat, 22 May 2021 08:24:47 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 900EF5FD25; Sat, 22 May 2021 08:24:47 -0400 (EDT) Received: (nullmailer pid 1565074 invoked by uid 1000); Sat, 22 May 2021 12:24:46 -0000 From: David Bremner To: Felipe Contreras , notmuch@notmuchmail.org Subject: Re: [PATCH] ruby: improve compilation with CFLAGS In-Reply-To: <87a6otzl51.fsf@tethera.net> References: <20210517054746.1144078-1-felipe.contreras@gmail.com> <87a6otzl51.fsf@tethera.net> Date: Sat, 22 May 2021 09:24:46 -0300 Message-ID: <87lf87t0q9.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: LQJKZFWPCYBGO6VGEUKGLMPQJQHB655D X-Message-ID-Hash: LQJKZFWPCYBGO6VGEUKGLMPQJQHB655D X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Tomi Ollila X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621686293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=IwEips++kk43R7lZMY8Sh2umID9VS++gr9UnhuWDdtM=; b=JSzfhIO1AuUiasjrU+B8WTyCzIA7bEBf/OWUyfY67RdozTm+TGiAiLa4I0pHqVotHmUZ84 cQO0TCJ9xQ6CZNYITQWVWxd8F4pFl2aNFMdfwDAUXKuY+l3kvTDBeKUh1jWfNraOwj6OE0 DRs9+md22JvsACY2mviKqWHQ7p4oMxIXwydkfCCODn8EwmXa6aUDen6mlF20TQk9r0Qk49 S2rKllJnqR10gPb1iF44PeM92y1HKb3UYqNPlXzOD4Cwj3v7w5vVd8+yo5V6yxj8Du8wJE jv6QkavglZ1DFiNCuYHicqCNNpAPCw4Haqol3egN/+GMIRpnOagwApUYTpCUFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621686293; a=rsa-sha256; cv=none; b=BUrCLGE0kdDnY8upsiSkdWenZRalXue4/raJOToJO47b+LA33BF+YueUNKZqRZ/gUxvSN9 A9z+zptUuDmJwo8aLPe5t1E9aX+/DNvtrc8yf1yAnAClt428wJFs1JRFYumil9Cbi4Kqw3 thRCnFjW8RCJCUeW+piG7KOts7CrUvJhEz9VcBK0rm7PDDmbg+GgGQGX0OLh7AHkvDfNpZ NKnjlZe8T0jaqDH9MeWLOdMz1cSU+7gbexRDFkYZHVELFxP8CmquHFgSKn4EqjkPBqaxpM daJ63FPp0urg5kq3gykksV68mDedirTB7lPTnhZNmocXOvlXHCgXcBREEKp6iQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.07 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: B0F9F29C39 X-Spam-Score: -2.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: LmlMlqZ0nJkC David Bremner writes: > Felipe Contreras writes: > >> The ruby MakeMakefile generates a makefile that is suboptimal, which has >> CFLAGS like this: >> >> CFLAGS = $(CCDLFLAGS) -march=x86-64 -mtune=generic \ >> -O2 -pipe -fno-plt -fPIC $(ARCH_FLAG) > > Ruby 2.7 doesn't seem to add -fno-plt, so this would be a change for > some people building the ruby bindings. The flag is available from gcc > 6.x (2016). For clang I guess it is 2017ish. If anyone thinks this is > too recent of a toolchain dependence, now is your chance to object. Nobody complained, so I applied this to master. d