Skip to content

Commit

Permalink
require at the top!
Browse files Browse the repository at this point in the history
  • Loading branch information
rep committed Sep 20, 2012
1 parent 294fd4d commit d503ede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/nacl/extconf.rb
@@ -1,3 +1,5 @@
require 'mkmf'

unless nacl = ENV['NACL_HOME']
puts "NACL_HOME environment variable missing"
exit
Expand All @@ -12,6 +14,5 @@
$LDFLAGS << "-Wl,-Bsymbolic-functions -fPIC -lnacl #{libdir}/randombytes.o -L#{libdir}"
$CFLAGS << " -fPIC -I#{incdir} "

require 'mkmf'
have_library "nacl"
create_makefile('nacl/nacl')

0 comments on commit d503ede

Please sign in to comment.