182 Commits

Author SHA1 Message Date
Adam Vandenberg
9752fc93fd Add ENV.cppflags shortcut 2011-01-22 10:07:08 -08:00
Jamie Macey
1e41264f42 fix warnings: ambiguous first arg
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 14:47:44 -07:00
Adam Vandenberg
9e1470684f Coerce ENV.append/prepend values to strings.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-05 13:41:38 -07:00
Adam Vandenberg
e1af735d77 ENV.rb - style tweak 2010-09-07 10:09:22 -07:00
Adam Vandenberg
53cf7e843b Add ENV.ldflags and use. 2010-09-06 11:48:21 -07:00
Adam Vandenberg
c5a9520310 ENV.rb - add ENV.cflags 2010-08-10 08:30:11 -07:00
Adam Vandenberg
5d58d99d10 ENV.rb - style cleanups 2010-08-10 07:58:08 -07:00
Adam Vandenberg
80c090aaae Remove redundent line and reword comments slightly. 2010-08-09 21:03:29 -07:00
Adam Vandenberg
57bbeb3bd7 Put /usr/X11/bin in PATH when requesting X11. 2010-08-07 18:08:52 -07:00
Brett Cannon
3a97b2cf67 Fix LLVM compilation under OS X 10.6 where cflags was not being defined.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Unshare code between ENV.llvm and ENV.setup_build_environment
2010-06-18 16:32:19 -07:00
Chris Hoffman
6aeb848bd8 Refactor llvm compiler selection so formula can use it
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-17 09:39:55 -07:00
Chris Hoffman
154d0fa92d Fix exception when installing with --use-llvm
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-17 09:39:41 -07:00
Adam Vandenberg
2dbc6b977f Use same LLVM binary to check build # as we do to build with.
Different llvm binaries were used to check build numbers and to compile with.
Normalize this, and normalize the variable name used to hold the xcode location.
(Calling it "prefix" is confusing, since there are already concepts in Homebrew
called "prefx".)
2010-06-16 13:32:09 -07:00
Adam Vandenberg
7c158e2350 Fix universal builds on 32-bit CPUs. 2010-04-22 17:23:59 -07:00
Adam Vandenberg
9cf7845015 Bug fix: gcc_4_0_1 wasn't removing sse4 flags correctly. 2010-03-17 15:33:37 -07:00
Adam Vandenberg
a9b19f0255 Move license block to separate LICENSE file. 2010-03-01 11:41:24 -08:00
Max Howell
1149b082bb We need to set CC and CXX for many formula
Fixes Homebrew/homebrew#807; Fixes Homebrew/homebrew#808
2010-02-24 15:13:20 +00:00
Max Howell
786775152e No longer compile with LLVM by default
Justification:
* LLVM is too immature, it often fails to compile, sometimes irreproducibly
* The performance of the resulting bytecode is often slower than the GCC
  equivalent (eg MySQL)

If you want to continue using LLVM you can. Set HOMEBREW_USE_LLVM or brew with
--use-llvm.

We also now use the default compiler for each platform. So GCC 4.2 on Snow and
GCC 4.0 on Leopard. This also means that new formula are more likely to just
work as many over complicated build systems get upset when you mix things up.

I also did a bunch more new research regarding compiler flags. We now set the
right -march for nehalem procs and don't add redundant flags like msse3 (which
is automatically applied for all the -march settings we use).

Reducing the number of cflags will improve the overall reliability of our
platform.
2010-02-19 17:50:23 +00:00
Aleksandar Topuzović
2e3585872b Set correct LDFLAGS for universal binaries
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-02-13 17:21:42 -08:00
Adam Vandenberg
07adef4954 ENV.cxx was not retrieving proper ENV flag. 2010-02-08 14:23:01 -08:00
Florian Sowade
056851463e Added CMAKE_PREFIX_PATH to environment valriables
CMake ignores the CPPFLAGS and LDFLAGS environment variables. This makes sure CMake finds libraries when homebrew is not installed at /usr/local.

Signed-off-by: Max Howell <max@methylblue.com>

Fixes Homebrew/homebrew#242
2010-01-14 09:41:06 +00:00
Max Howell
2037b2373a Use less lengthy path to llvm binaries 2010-01-13 11:23:15 +00:00
Adam Vandenberg
24b6e9c721 Detect X11 when ENV.x11 is requested; dump in --config. 2010-01-11 11:36:35 -08:00
Max Howell
95eb1b4a5d Remove redundant cflags
-fomit-frame-pointer is included for any optimisation level above O2 (including Os)

Setting MACOS_DEPLOYMENT_TARGET is unecessary if you are just setting it the same as the OS X you are running.
2009-12-02 12:17:14 +00:00
Max Howell
a687871ae1 Alias gcc_4_0_1 to gcc_4_0
This is what we did for gcc_4_2 after all.
2009-12-02 10:39:06 +00:00
Max Howell
e1690dd4aa When not installed to /usr/local use -isystem
This means our include directory is prioritised above all -I but after all other system directories. This is how it should be.

Also helps fix Homebrew/homebrew#113.
2009-12-01 12:07:34 +00:00
Max Howell
7ec2874746 Fix ENV.m32 when LDFLAGS already exists 2009-11-07 18:22:34 +00:00
Max Howell
03f37bef79 ENV.m32 2009-10-23 19:20:16 +01:00
Max Howell
6de6bffd55 ENV.osx_10_5 2009-10-23 19:20:16 +01:00
Adam Vandenberg
e1d82cde79 Add separator param to ENV.append (to match prepend.) 2009-10-21 11:50:37 -07:00
Max Howell
595dbc5710 ENV.universal_binary
Note, we still don't support PPC, this builds a 32 bit, 64 bit binary.
2009-10-19 13:48:33 +01:00
Max Howell
543a113712 Some subdirs and renames to aid homebrew n00bs
The classes better reflect their contents. I'm sure this change may be
contentious, but I am a sucker for trying to create source bases that are easy
to get to grips with and easy to navigate.

brewkit.rb is now a deprecated file.
2009-10-15 16:51:53 +01:00