Commit Graph
5 Commits
Author SHA1 Message Date
Max Howell 4e4517caa2 Restore HOMEBREW_LOG functionality 2012-09-29 09:57:37 -04:00
Max Howell 44e6db11cf Determine SUPERBIN correctly 2012-09-25 11:31:56 -04:00
Max Howell 128a59cc20 Work even when RUBYLIB='-'
Apparently setting RUBYLIB to '-' causes the library path to be unset. So we need to set our own library path in our scripts.

Fixes Homebrew/homebrew-versions/#47.
2012-09-24 09:49:54 -04:00
Max Howell 557cf057ec Abort if xcrun -find foo returns superbin/foo
Fixes #14691.

Rewrite in Ruby to facilitate checking PATHs properly.
2012-09-24 09:49:53 -04:00
Max Howell 59736fb537 superenv: build-environments that just work
1. A minimal build environment, we don't set CFLAGS, CPPFLAGS, LDFLAGS, etc. the rationale being, the less that is set, the less variables we are introducing that can break builds.
2. A set of scripts that replace cc, ld, etc. and inject the -I, -L, etc. flags we need into the args passed to the build-tools.

Because we now have complete control over compiler instantiations we do a variety of clean-up tasks, like removing bad flags, enforcing universal builds and ensuring makefiles don't try to change the order of library and include paths from ones that work to ones that don't.

The previous ENV-system is still available when --env=std is specified.

superenv applies to Xcode >= 4.3 only currently.
2012-08-29 12:41:34 -04:00