diff options
Diffstat (limited to 'Library/Formula/dos2unix.rb')
| -rw-r--r-- | Library/Formula/dos2unix.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/dos2unix.rb b/Library/Formula/dos2unix.rb index 06988aac8..c0ba4f5f6 100644 --- a/Library/Formula/dos2unix.rb +++ b/Library/Formula/dos2unix.rb @@ -7,8 +7,11 @@ class Dos2unix <Formula def install File.unlink 'dos2unix' + # we don't use make as it doesn't optimise :P - system "gcc #{ENV['CFLAGS']} dos2unix.c -o dos2unix" + gcc = ENV['CC'] || "gcc" + system "#{gcc} #{ENV['CFLAGS']} dos2unix.c -o dos2unix" + # make install is broken due to INSTALL file, but also it sucks so we'll do it # also Ruby 1.8 is broken, it won't allow you to move a symlink that's # target is invalid. FFS very dissapointed with dependability of |
