Created
May 12, 2010 04:23
-
-
Save eric/398204 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/extconf.rb b/ext/extconf.rb | |
index 48d052a..e82989e 100644 | |
--- a/ext/extconf.rb | |
+++ b/ext/extconf.rb | |
@@ -68,6 +68,10 @@ def check_libmemcached | |
puts(cmd = "patch -p1 -Z < sasl.patch") | |
raise "'#{cmd}' failed" unless system(cmd) | |
+ puts "Touching aclocal.m4 in libmemcached." | |
+ puts(cmd = "touch -r #{BUNDLE_PATH}/m4/visibility.m4 #{BUNDLE_PATH}/configure.ac #{BUNDLE_PATH}/m4/pandora_have_sasl.m4") | |
+ raise "'#{cmd}' failed" unless system(cmd) | |
+ | |
Dir.chdir(BUNDLE_PATH) do | |
puts(cmd = "env CFLAGS='-fPIC #{$CFLAGS}' LDFLAGS='-fPIC #{$LDFLAGS}' ./configure --prefix=#{HERE} --without-memcached --disable- | |
raise "'#{cmd}' failed" unless system(cmd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment