diff options
| author | Nibbles 2bits | 2011-11-28 17:24:58 -0800 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-11-29 10:01:52 -0800 |
| commit | c655c1722e1410701dabbfa11d2e630ec63d42dc (patch) | |
| tree | 5e5316028d49574f783853587192ed5aaf2ad0a5 /Library | |
| parent | 9bcebce008d8b520bda9556e45565e75188af20e (diff) | |
| download | homebrew-c655c1722e1410701dabbfa11d2e630ec63d42dc.tar.bz2 | |
geos: Fix LLVM compiler errors
geos 3.3.1 fails_with_llvm due to missing symbols that get optimized out of
libgeom. This patches the makefile for that library so all objects are compiled
at -O1 rather than -O3.
Closes #8858.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/geos.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Formula/geos.rb b/Library/Formula/geos.rb index d99211da7..22fcfc394 100644 --- a/Library/Formula/geos.rb +++ b/Library/Formula/geos.rb @@ -5,14 +5,14 @@ class Geos < Formula homepage 'http://trac.osgeo.org/geos/' sha1 '4f89e62c636dbf3e5d7e1bfcd6d9a7bff1bcfa60' - def skip_clean? path - path.extname == '.la' - end - - fails_with_llvm "Some symbols are missing during link step." - def install - system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" + # fixes compile error: missing symbols being optimized out using llvm. + if ENV.compiler == :llvm then + inreplace 'src/geom/Makefile.in', 'CFLAGS = @CFLAGS@', 'CFLAGS = @CFLAGS@ -O1' + inreplace 'src/geom/Makefile.in', 'CXXFLAGS = @CXXFLAGS@', 'CXXFLAGS = @CXXFLAGS@ -O1' + end + + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" end end |
