From 30b53cf92ab217fe572b9145300fc8ee443de633 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 31 Aug 2012 14:12:03 -0400 Subject: Cram GL headers and includes into superenv Fixes Homebrew/homebrew#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. --- Library/ENV/4.3/cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library/ENV') 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" } -- cgit v1.2.3