From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AK3NG0JLomCKKgAAgWs5BA (envelope-from ) for ; Mon, 17 May 2021 12:53:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8PBrF0JLomC3LQAAB5/wlQ (envelope-from ) for ; Mon, 17 May 2021 10:53:54 +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 B04291CE3C for ; Mon, 17 May 2021 12:53:53 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 62A152A9EB; Mon, 17 May 2021 06:53:50 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 8419A2905B for ; Mon, 17 May 2021 06:53:47 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 4E63060018; Mon, 17 May 2021 06:53:47 -0400 (EDT) Received: (nullmailer pid 3965017 invoked by uid 1000); Mon, 17 May 2021 10:53:46 -0000 From: David Bremner To: Felipe Contreras , notmuch@notmuchmail.org Subject: Re: [PATCH] ruby: improve compilation with CFLAGS In-Reply-To: <20210517054746.1144078-1-felipe.contreras@gmail.com> References: <20210517054746.1144078-1-felipe.contreras@gmail.com> X-List-To: notmuch Date: Mon, 17 May 2021 07:53:46 -0300 Message-ID: <87a6otzl51.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: PEA7SP2GTE33T3CRXPHPDBACVNSEKGHT X-Message-ID-Hash: PEA7SP2GTE33T3CRXPHPDBACVNSEKGHT 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=1621248834; 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=Zvo2qLCRT9DAV3IozT+6rtp3Asz+9rpeKt7gCqVA0OE=; b=g0rBVeYLyeN7G992AZiBZpMAh0aLUaBsw868/w5ze0mi5rZqw+9LCmeliba6vUlHYwZJ0x O2WGW4FlQYnpl87nci+o9TBQA9CR6AxZ02roHtMyO4E7EnY3bGnQcq/eU+Vow5GweNwI9U fCZyavTE6gjo8rWbRkkkJ2ZTwyXbNjTorjSBht9xzjDCiMYFArFI/NXTWU63y47aaCP9KM WxZfgM6V9LwQ0MXaxIj6KYLghl4ZtqQyMFKDZ/1nvu0OsKrzkih8wncid8bcjzREB4KH// 2e9fSD+PouJYxl6FhMLIEXqGpzEZ8Ix6sR1xzvCtqsWorBjp6mgs0hgJM7k5Kw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621248834; a=rsa-sha256; cv=none; b=PzjBMOPKiIlVlOErusNu0PF1UP1+ujlQ64syZQnY/Qu7vI9S8XzRQOdB7I/bWQGpmxo8JG haZpG02u8yz6NYrPyyqaPMJvBtbML6urFPy7DAoniT5R8CRo2yX/fzdnXeSgJhw4TA5cpg Awk/no6GgkES8hgYLG+i2210Fv7YelOhQrwl6AYbJPV6GOAt1aN3kMAlqSUkHW+5v3FAgR 1tTSXH6NbVmf2ezRMPN0mG19TEjDzTgOf9/Ea9/jsPNLKgZctCMP1lnJPjhiiGERmuVn+8 drrUz77NAqNw5qeFrvyHffUlZ6DUEl2nCUibDP4xQYRDQyQYCBB1uzjpqubfww== 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: B04291CE3C X-Spam-Score: -2.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: KYXIygnBgUj9 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. d