Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion ext/mri/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@

# From Openwall's crypt_blowfish Makefile.
# This is `bcrypt_ext` (our extension) + CRYPT_OBJS from that Makefile.
$objs = %w(bcrypt_ext.o crypt_blowfish.o x86.o crypt_gensalt.o wrapper.o)
$objs = %w(bcrypt_ext.o crypt_blowfish.o crypt_gensalt.o wrapper.o)

# x86.S is an optional i386 assembly implementation; it is guarded by
# #ifdef __i386__ and assembles to an empty object everywhere else.
# MSVC cannot assemble it at all, so leave it out there and rely on the
# portable C implementation (BF_ASM == 0) in crypt_blowfish.c.
$objs << "x86.o" unless $mswin

$defs << "-D__SKIP_GNU"
dir_config("bcrypt_ext")
Expand Down