Sha256: 40cf5068cd193f1106688aa4cce4ec9881c0649e1103f4000103827b62e3af60

Contents?: true

Size: 1.11 KB

Versions: 31

Compression:

Stored size: 1.11 KB

Contents

--- a/lib/mkmf.rb	2016-06-16 16:19:13.000000000 -0400
+++ b/lib/mkmf.rb	2016-06-16 16:23:08.000000000 -0400
@@ -365,6 +365,17 @@
   end
 
   def libpath_env
+    # Patch for aix
+    # Ideally applications should not need LIBPATH/LD_LIBRARY_PATH set
+    # and should rely on the embedded paths in binaries/shared objects
+    # For chef say on AIX we already build using -blibpath and
+    # LD_RUN_PATH, so the extensions built using chef embedded ruby
+    # (using rbconfig) should have correct paths set.
+    # Setting LIBPATH overrides the behaviour of programs invoked from
+    # chef built ruby, for example xlc ends up picking up libiconv built
+    # within chef embedded ruby libs instead of the one from /usr/lib
+    return {}
+
     # used only if native compiling
     if libpathenv = config_string("LIBPATHENV")
       pathenv = ENV[libpathenv]
@@ -1799,7 +1810,7 @@
   #
   if !CROSS_COMPILING
     case CONFIG['build_os']
-    when 'mingw32'
+    when 'mingw32', 'mingw64'
       def mkintpath(path)
         # mingw uses make from msys and it needs special care
         # converts from C:\some\path to /C/some/path

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
omnibus-software-23.7.295 config/patches/ruby/ruby-mkmf.patch
omnibus-software-23.6.292 config/patches/ruby/ruby-mkmf.patch
omnibus-software-23.6.291 config/patches/ruby/ruby-mkmf.patch
omnibus-software-23.2.283 config/patches/ruby/ruby-mkmf.patch
omnibus-software-23.2.281 config/patches/ruby/ruby-mkmf.patch
omnibus-software-22.11.239 config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.32 omnibus/config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.31 omnibus/config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.30 omnibus/config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.29 omnibus/config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.28 omnibus/config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.27 omnibus/config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.26 omnibus/config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.25 omnibus/config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.24 omnibus/config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.23 omnibus/config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.22 omnibus/config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.21 omnibus/config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.20 omnibus/config/patches/ruby/ruby-mkmf.patch
clusterlb-0.1.19 omnibus/config/patches/ruby/ruby-mkmf.patch