diff --git a/hiredis-client/ext/redis_client/hiredis/extconf.rb b/hiredis-client/ext/redis_client/hiredis/extconf.rb index fb28796..29348b4 100644 --- a/hiredis-client/ext/redis_client/hiredis/extconf.rb +++ b/hiredis-client/ext/redis_client/hiredis/extconf.rb @@ -21,7 +21,7 @@ def configure_extension have_func("rb_hash_new_capa", "ruby.h") - $CFLAGS = concat_flags($CFLAGS, "-I#{Shellwords.escape(hiredis_dir)}", "-std=c99", "-fvisibility=hidden") + append_cflags(["-I #{Shellwords.escape(hiredis_dir)}", "-std=c99", "-fvisibility=hidden"]) $CFLAGS = if @debug concat_flags($CFLAGS, "-Werror", "-g", RbConfig::CONFIG["debugflags"]) else