mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
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>
This commit is contained in:
parent
ff07183a02
commit
3dae253c4f
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ ifeq ($(HAVE_RUBY_DEV),1)
|
||||||
LIBNOTMUCH="../../lib/$(LINKER_NAME)" \
|
LIBNOTMUCH="../../lib/$(LINKER_NAME)" \
|
||||||
NOTMUCH_SRCDIR='$(NOTMUCH_SRCDIR)' \
|
NOTMUCH_SRCDIR='$(NOTMUCH_SRCDIR)' \
|
||||||
$(RUBY) extconf.rb --vendor
|
$(RUBY) extconf.rb --vendor
|
||||||
$(MAKE) -C $(dir)/ruby
|
$(MAKE) -C $(dir)/ruby CFLAGS="$(CFLAGS) -pipe -fno-plt -fPIC"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
python-cffi-bindings: lib/$(LINKER_NAME)
|
python-cffi-bindings: lib/$(LINKER_NAME)
|
||||||
|
|
Loading…
Reference in a new issue