about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-03-21 14:12:17 -0700
committerEric Wong <normalperson@yhbt.net>2011-03-21 14:25:02 -0700
commit693beb4015cf3bfd68f76432cb3ce779e9752cc1 (patch)
treecb43a48eb947d8334c85d3d8f4bbca4c97002daa
parent14423a47266bbb37fe0b2fe5f24cef9e26037e38 (diff)
downloadraindrops-693beb4015cf3bfd68f76432cb3ce779e9752cc1.tar.gz
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
-rw-r--r--ext/raindrops/extconf.rb3
1 files changed, 1 insertions, 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')