instance method
MakeMakefile#append_ldflags
append_ldflags(flags, **opts)
lib/mkmf.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/mkmf.rb, line 762
def append_ldflags(flags, **opts)
Array(flags).each do |flag|
if checking_for("whether #{flag} is accepted as LDFLAGS") {
try_ldflags(flag, **opts)
}
$LDFLAGS << " " << flag
end
end
end
Check whether each given linker flag is acceptable and append it to $LDFLAGS if so.