diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-08-14 20:05:21 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-08-14 20:05:21 +0000 |
commit | 6ce313006791b2e804c6de79c349076b370022e5 (patch) | |
tree | 2897833a222c8f7a7bf8ad4e1026acc34985080b /ext/digest/sha2/extconf.rb | |
parent | ad4c17c021111d194e63178c61579cf0df853f9d (diff) | |
download | ruby-6ce313006791b2e804c6de79c349076b370022e5.tar.gz |
* ext/digest/*/extconf.rb: really fix so that they build from any
directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/digest/sha2/extconf.rb')
-rw-r--r-- | ext/digest/sha2/extconf.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb index dce1115bf8..f593c79111 100644 --- a/ext/digest/sha2/extconf.rb +++ b/ext/digest/sha2/extconf.rb @@ -1,9 +1,9 @@ -# $RoughId: extconf.rb,v 1.1 2001/07/13 15:38:27 knu Exp $ +# $RoughId: extconf.rb,v 1.4 2001/08/14 19:54:51 knu Exp $ # $Id$ require "mkmf" -$CFLAGS << " -DHAVE_CONFIG_H -I$(srcdir)/.." +$CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.." $objs = [ "sha2.#{$OBJEXT}", @@ -17,8 +17,8 @@ have_header("inttypes.h") have_header("unistd.h") -if try_run(<<SRC, $defs.join(' ') + " -I#{$srcdir}") -#include "../defs.h" +if try_run(<<SRC, $defs.join(' ')) +#include "defs.h" int main(void) { #ifdef NO_UINT64_T return 1; |