From b641c96f57f806efdf7dc84d3a1879a7625a95b0 Mon Sep 17 00:00:00 2001 From: Xuejie Xiao Date: Tue, 18 Dec 2012 20:33:51 -0500 Subject: Derive DISABLE_GEMS macro according to build configuration --- Rakefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 029016aa2..a1c2e9441 100644 --- a/Rakefile +++ b/Rakefile @@ -36,6 +36,10 @@ end LDFLAGS = [ENV['LDFLAGS']] LIBS = [ENV['LIBS'] || '-lm'] +if !ENABLE_GEMS + CFLAGS << "-DDISABLE_GEMS" +end + CFLAGS << "-Wall" << "-Werror-implicit-function-declaration" << "-I#{MRUBY_ROOT}/include" if ENV['OS'] == 'Windows_NT' MAKE_FLAGS = "--no-print-directory CC=#{CC} LL=#{LL} AR=#{AR} YACC=#{YACC} CFLAGS=\"#{CFLAGS.join(' ')}\" LDFLAGS=\"#{LDFLAGS.join(' ')}\" LIBS=\"#{LIBS.join(' ')}\" ENABLE_GEMS=\"#{ENABLE_GEMS}\" MRUBY_ROOT=\"#{MRUBY_ROOT}\"" -- cgit v1.2.3