From 693beb4015cf3bfd68f76432cb3ce779e9752cc1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 21 Mar 2011 14:12:17 -0700 Subject: extconf: use dir_config properly dir_config may be used to build for libatomic_ops. The previous use of dir_config was from back when I didn't understand mkmf. This means you can now use: gem install raindrops -- --with-atomic_ops-dir=/usr/local If you libatomic_ops library was installed in /usr/local instead of /usr --- ext/raindrops/extconf.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/raindrops/extconf.rb b/ext/raindrops/extconf.rb index 8c7b084..825625d 100644 --- a/ext/raindrops/extconf.rb +++ b/ext/raindrops/extconf.rb @@ -1,5 +1,6 @@ require 'mkmf' +dir_config('atomic_ops') have_func('mmap', 'sys/mman.h') or abort 'mmap() not found' have_func('munmap', 'sys/mman.h') or abort 'munmap() not found' @@ -43,6 +44,4 @@ Users of Debian-based distros may run: apt-get install libatomic-ops-dev SRC - -dir_config('raindrops') create_makefile('raindrops_ext') -- cgit v1.2.3-24-ge0c7