diff --git a/lib/mkmf-cu/opt.rb b/lib/mkmf-cu/opt.rb index 64d8a51..853fe6b 100644 --- a/lib/mkmf-cu/opt.rb +++ b/lib/mkmf-cu/opt.rb @@ -70,8 +70,8 @@ def compiler_option(opt_h) end def linker_option(opt_h) - ret = "" - ["-dynamic", "-bundle", "-shared", "-rdynamic"].each{|op| + ret = " -shared " + ["-dynamic", "-bundle"].each{|op| opt_h[op].each{|e| ret << " --linker-options " + op }