aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV
diff options
context:
space:
mode:
authorMax Howell2012-08-31 14:12:03 -0400
committerMax Howell2012-08-31 14:12:28 -0400
commiteab09fc267b0cb13b3f8ba3fb9aec07065948408 (patch)
treed113d7a9cc741ae705094214ad36983ee4296611 /Library/ENV
parentb6a924bff1a881aadcbc24f0e3ecefb9fd459d7e (diff)
downloadhomebrew-eab09fc267b0cb13b3f8ba3fb9aec07065948408.tar.bz2
Cram GL headers and includes into superenv
Fixes #14554. We justify doing this because pre 10.8 X11 came with GL for all Homebrew-capable systems and as such is a default that we'd prefer not to have to address.
Diffstat (limited to 'Library/ENV')
-rwxr-xr-xLibrary/ENV/4.3/cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index ffc5884be..ec53fe882 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -135,7 +135,9 @@ class Cmd
end
end
def ldflags
- cmake_prefixes.map{|prefix| "#{prefix}/lib" }.to_flags('-L')
+ libs = cmake_prefixes.map{|prefix| "#{prefix}/lib" }
+ libs += ENV['CMAKE_LIBRARY_PATH'].split(':')
+ libs.to_flags('-L')
end
def cppflags
all = cmake_prefixes.map{|prefix| "#{prefix}/include" }