From 83c4ea8366c0fa01d947dc73eba95e3b4f5a17ac Mon Sep 17 00:00:00 2001 From: Yukihiro Matz Matsumoto Date: Tue, 18 Dec 2012 22:29:24 +0900 Subject: Rakefile: LIBS default to -lm --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index fe966879d..2cd11a239 100644 --- a/Rakefile +++ b/Rakefile @@ -34,7 +34,7 @@ else # including 'debug' CFLAGS = if e then [e] else ['-g', '-O3'] end end LDFLAGS = [ENV['LDFLAGS']] -LIBS = [ENV['LIBS']] +LIBS = [ENV['LIBS'] || '-lm'] CFLAGS << "-Wall" << "-Werror-implicit-function-declaration" << "-I#{MRUBY_ROOT}/include" if ENV['OS'] == 'Windows_NT' -- cgit v1.2.3