mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-28 03:49:49 -05:00
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.
This commit is contained in:
1 parent
15b6e2cb94
commit
67ed6a3fd7
1 file changed
+3
-3
@@ -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
|
||||
Reference in new issue
Block a user