aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libao.rb
diff options
context:
space:
mode:
authorMax Howell2009-10-19 13:25:37 +0100
committerMax Howell2009-10-19 13:48:34 +0100
commit6de46700922f5b0d49a44ceaebba41f815f82a58 (patch)
tree17d1a9f277d69c564c42825d1ab7b9630852711b /Library/Formula/libao.rb
parentd949318b0697069b1fd6a7020469a5f341fa70e2 (diff)
downloadhomebrew-6de46700922f5b0d49a44ceaebba41f815f82a58.tar.bz2
Fix libao runtime issue
Symbol not found: _dlsym_auto_underscore Fixes pending shell.fm output issue.
Diffstat (limited to 'Library/Formula/libao.rb')
-rw-r--r--Library/Formula/libao.rb39
1 files changed, 37 insertions, 2 deletions
diff --git a/Library/Formula/libao.rb b/Library/Formula/libao.rb
index ea6cbe381..f18ecf4a5 100644
--- a/Library/Formula/libao.rb
+++ b/Library/Formula/libao.rb
@@ -5,8 +5,43 @@ class Libao <Formula
@md5='b92cba3cbcf1ee9bc221118a85d23dcd'
@homepage='http://www.xiph.org/ao/'
+ def patches
+ # Fix this: dyld: lazy symbol binding failed: Symbol not found: _dlsym_auto_underscore
+ # See: http://trac.macports.org/ticket/20891
+ DATA
+ end
+
def install
- system "./configure --disable-debug --disable-dependency-tracking --prefix='#{prefix}'"
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}", "--disable-x"
system "make install"
end
-end \ No newline at end of file
+end
+
+
+__END__
+--- a/configure 2007-05-24 12:51:52.000000000 +0200
++++ b/configure 2007-11-30 21:54:58.000000000 +0100
+@@ -20094,9 +20094,10 @@
+ PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char" ;;
+ *-darwin*)
+ PLUGIN_LDFLAGS="-module -avoid-version"
+- DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -Ddlsym=dlsym_auto_underscore"
+- CFLAGS="-D__NO_MATH_INLINES -fsigned-char -Ddlsym=dlsym_auto_underscore"
+- PROFILE="-g -pg -D__NO_MATH_INLINES -fsigned-char -Ddlsym=dlsym_auto_underscore" ;;
++ DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
++ CFLAGS="-D__NO_MATH_INLINES -fsigned-char"
++ PROFILE="-g -pg -D__NO_MATH_INLINES -fsigned-char"
++ LIBS="-Wl,-framework -Wl,AudioUnit" ;;
+ *)
+ PLUGIN_LDFLAGS="-export-dynamic -avoid-version"
+ DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
+@@ -20203,7 +20204,7 @@
+ DLOPEN_FLAG='(RTLD_LAZY)'
+ SHARED_LIB_EXT='.sl'
+ ;;
+- *openbsd* | *netbsd* | *solaris2.7)
++ *openbsd* | *netbsd* | *solaris2.7 | *darwin*)
+ DLOPEN_FLAG='(RTLD_LAZY)'
+ SHARED_LIB_EXT='.so'
+ ;;