From 675e958b66ca834594820ad53b4e191daa3df604 Mon Sep 17 00:00:00 2001 From: "Ramon Marco L. Navarro" Date: Tue, 21 Jun 2011 23:36:54 +0800 Subject: [PATCH] Fix: g++: error: unrecognized option '-h' --- ext/jasmine-webkit-specrunner/extconf.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ext/jasmine-webkit-specrunner/extconf.rb b/ext/jasmine-webkit-specrunner/extconf.rb index ee09069..cbc77ca 100644 --- a/ext/jasmine-webkit-specrunner/extconf.rb +++ b/ext/jasmine-webkit-specrunner/extconf.rb @@ -1,2 +1,8 @@ -system %{qmake -spec macx-g++} +case RUBY_PLATFORM +when /linux/ + system %{qmake -spec linux-g++} +else + system %{qmake -spec macx-g++} +end + system %{make}