aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorFlorian Sowade2009-11-30 11:37:16 +0100
committerMax Howell2009-12-06 15:35:23 +0000
commit950d0c7f56e5e7c9aa0549d7043608dd21039084 (patch)
tree6d862492247d3eda2c90182a40ce291d8561f451 /Library
parentc77a4bfbaf6db4d76749d4aed6101de07c89fa69 (diff)
downloadhomebrew-950d0c7f56e5e7c9aa0549d7043608dd21039084.tar.bz2
Use Homebrew CFLAGS in ohcount formula
ohcount sefaults with optimisation enabled, so I set it to -O0 manually.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ohcount.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/Library/Formula/ohcount.rb b/Library/Formula/ohcount.rb
index fceb1dd48..52a22071f 100644
--- a/Library/Formula/ohcount.rb
+++ b/Library/Formula/ohcount.rb
@@ -21,12 +21,21 @@ end
__END__
--- a/build
+++ b/build
+@@ -29,7 +29,7 @@ else
+ INC_DIR=/opt/local/include
+ LIB_DIR=/opt/local/lib
+ # You shouldn't have to change the following.
+- CFLAGS="-fno-common -g"
++ #CFLAGS="-fno-common -g"
+ WARN="-Wall -Wno-parentheses"
+ SHARED="-dynamiclib -L$LIB_DIR -lpcre"
+ SHARED_NAME=libohcount.dylib
@@ -38,7 +38,7 @@ else
fi
# C compiler and flags
-cc="gcc -fPIC -g $CFLAGS $WARN -I$INC_DIR -L$LIB_DIR"
-+cc="$CC -fPIC -g $CFLAGS $WARN $CPPFLAGS $LDFLAGS"
++cc="$CC $CFLAGS -O0 $WARN $CPPFLAGS $LDFLAGS"
# Ohcount source files
files="src/sourcefile.c \