notmuch/bindings
Felipe Contreras 3dae253c4f ruby: improve compilation with CFLAGS
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)

This works as long as the user doesn't modify the Makefile.

Certain flags (namely -fPIC) need to be present regardless of what
CFLAGS are specified.

The Makefile should have done this instead:

  CFLAGS = -march=x86-64 -mtune=generic -O2
  override CFLAGS += $(CCDLFLAGS) -pipe -fno-plt -fPIC $(ARCH_FLAG)

Unfortunately they didn't, so we need to workaround their lack of
foresight.

We can simply add the necessary flags in the parent Makefile so everyone
is happy.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2021-05-22 09:17:21 -03:00
..
python version: bump to 0.32.1 2021-05-15 08:59:01 -03:00
python-cffi version: bump to 0.32.1 2021-05-15 08:59:01 -03:00
ruby ruby: new notmuch_rb_object_destroy() helper 2021-05-17 07:25:14 -03:00
Makefile build: integrate building ruby bindings into notmuch build process 2015-06-12 09:12:28 +02:00
Makefile.local ruby: improve compilation with CFLAGS 2021-05-22 09:17:21 -03:00