aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/hllib.rb
diff options
context:
space:
mode:
authorMax Howell2010-06-13 21:47:56 +0100
committerMax Howell2010-06-13 21:47:56 +0100
commit67ed6a3fd77528af2f25424774174e15305bc2ba (patch)
tree39ec7d528a8dcc9cdee40a55e1d4c202b0037c5e /Library/Formula/hllib.rb
parent15b6e2cb9471ad80c5ae21eb214e6d5f9a8ba9ec (diff)
downloadhomebrew-67ed6a3fd77528af2f25424774174e15305bc2ba.tar.bz2
Add include and lib paths to hlextract build path
We haven't brew-linked yet so this stuff isn't yet in the build path.
Diffstat (limited to 'Library/Formula/hllib.rb')
-rw-r--r--Library/Formula/hllib.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/hllib.rb b/Library/Formula/hllib.rb
index 91fe4705a..9b91c7d4e 100644
--- a/Library/Formula/hllib.rb
+++ b/Library/Formula/hllib.rb
@@ -9,10 +9,10 @@ class Hllib <Formula
def install
# Library
cd 'HLLib' do
- # Set prefix correctly
- inreplace 'Makefile', '/usr/local', prefix
# Set perms so we can replace the strings
chmod 0777, 'Makefile'
+ # Set prefix correctly
+ inreplace 'Makefile', '/usr/local', prefix
# Remove -soname directive
inreplace 'Makefile', '-shared -Wl,-soname,libhl.so.2', '-shared -Wl'
# Ownership isn't needed here
@@ -36,7 +36,7 @@ class Hllib <Formula
inreplace 'Main.c', 'HLExtract.exe', 'hlextract'
# Make the binary build path and build
bin.mkpath
- system ENV['CC'], 'Main.c', '-lhl', '-o', bin+'hlextract'
+ system ENV['CC'], 'Main.c', "-I#{include}", "-L#{lib}", '-lhl', '-o', bin+'hlextract'
end
end
end