We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 70d5696 + 4d9e9ca commit 4bbde47Copy full SHA for 4bbde47
ext/scrypt/Rakefile
@@ -4,6 +4,7 @@ FFI::Compiler::CompileTask.new('scrypt_ext') do |t|
4
t.cflags << "-Wall -std=c99"
5
t.cflags << "-msse -msse2" if t.platform.arch.include? "86"
6
t.cflags << "-D_GNU_SOURCE=1" if RbConfig::CONFIG["host_os"].downcase =~ /mingw/
7
+ t.cflags << "-D__need_timespec" if RbConfig::CONFIG['host_os'].downcase =~ /linux/
8
t.cflags << "-arch x86_64 -arch i386" if t.platform.mac?
9
t.ldflags << "-arch x86_64 -arch i386" if t.platform.mac?
10
t.export '../../lib/scrypt/scrypt_ext.rb'
0 commit comments