Permalink
Browse files

Fix: issue #34, compiling on Arch linux

  • Loading branch information...
1 parent 0a07570 commit 304de8804d2cabe48d949278d08b78828e2926a8 @petRUShka petRUShka committed with jferris May 22, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/capybara_webkit_builder.rb
View
7 lib/capybara_webkit_builder.rb
@@ -6,7 +6,12 @@ module CapybaraWebkitBuilder
def makefile
qmake_binaries = ['qmake', 'qmake-qt4']
qmake = qmake_binaries.detect { |qmake| system("which #{qmake}") }
- system("#{qmake} -spec macx-g++")
+ case RUBY_PLATFORM
+ when /linux/
+ system("#{qmake} -spec linux-g++")
+ else
+ system("#{qmake} -spec macx-g++")
+ end
end
def qmake

0 comments on commit 304de88

Please sign in to comment.