diff options
| author | Jack Nagel | 2012-11-05 18:13:54 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-11-06 12:32:10 -0600 |
| commit | 5de12d7182f0e064fc87395d1c8bacd24d2e7963 (patch) | |
| tree | 94085fd4b356fb56a3c398fe4c1a3a750b8020da /Library | |
| parent | 7f9c03c1ff86364fc75c7a0f2ae8e754adab3875 (diff) | |
| download | brew-5de12d7182f0e064fc87395d1c8bacd24d2e7963.tar.bz2 | |
Inject framework paths into stdenv compiler flags
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index e39bda5c8..951506cf4 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -33,6 +33,10 @@ module HomebrewEnvExtension self['CMAKE_PREFIX_PATH'] = "#{HOMEBREW_PREFIX}" end + append 'CPPFLAGS', "-F#{HOMEBREW_PREFIX}/Frameworks" + append 'LDFLAGS', "-F#{HOMEBREW_PREFIX}/Frameworks" + self['CMAKE_FRAMEWORK_PATH'] = HOMEBREW_PREFIX/"Frameworks" + # Os is the default Apple uses for all its stuff so let's trust them set_cflags "-Os #{SAFE_CFLAGS_FLAGS}" |
