We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8b3449 commit ce4e526Copy full SHA for ce4e526
core/rbconfig.rb
@@ -209,9 +209,13 @@ module RbConfig
209
CONFIG["PACKAGE_VERSION"] = ""
210
CONFIG["PACKAGE_STRING"] = ""
211
CONFIG["PACKAGE_BUGREPORT"] = ""
212
- CONFIG["LDSHARED"] = Rubinius::LDSHARED.dup
213
- CONFIG["LIBRUBY_LDSHARED"] = Rubinius::LDSHARED.dup
214
- CONFIG["LDSHAREDXX"] = Rubinius::LDSHAREDXX.dup
+
+ ldshared = (ENV["LDSHARED"] || Rubinius::LDSHARED.sub(/^(gcc|clang)/, "cc")).dup
+ ldsharedxx = (ENV["LDSHAREDXX"] || Rubinius::LDSHAREDXX.sub(/^(g|clang)\+\+/, "c++")).dup
215
216
+ CONFIG["LDSHARED"] = ldshared
217
+ CONFIG["LIBRUBY_LDSHARED"] = ldshared
218
+ CONFIG["LDSHAREDXX"] = ldsharedxx
219
220
# absolute path to ruby executable (pulled directly from MRI's mkconfig.rb)
221
def RbConfig.ruby
0 commit comments