Re: [PATCH] ruby: improve compilation with CFLAGS

Subject: Re: [PATCH] ruby: improve compilation with CFLAGS

Date: Mon, 17 May 2021 07:53:46 -0300

To: Felipe Contreras, notmuch@notmuchmail.org

Cc: Tomi Ollila

From: David Bremner


Felipe Contreras <felipe.contreras@gmail.com> 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
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: