aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby18/files
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2004-07-13 15:03:54 +0800
committerknu <knu@FreeBSD.org>2004-07-13 15:03:54 +0800
commit3deaececa23b26b70c3b1c696bd2b8bce793b91c (patch)
tree34756d79e2b6c308067288c588d47e3e68ff5160 /lang/ruby18/files
parent59c767756d08b2d8d6ece41445618ad11c7f0580 (diff)
downloadfreebsd-ports-gnome-3deaececa23b26b70c3b1c696bd2b8bce793b91c.tar.gz
freebsd-ports-gnome-3deaececa23b26b70c3b1c696bd2b8bce793b91c.tar.zst
freebsd-ports-gnome-3deaececa23b26b70c3b1c696bd2b8bce793b91c.zip
Pull in the latest change to mkmf.rb to avoid build error when
devel/readline is installed.
Diffstat (limited to 'lang/ruby18/files')
-rw-r--r--lang/ruby18/files/patch-mkmf.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/ruby18/files/patch-mkmf.rb b/lang/ruby18/files/patch-mkmf.rb
new file mode 100644
index 000000000000..fcb200f6b9e3
--- /dev/null
+++ b/lang/ruby18/files/patch-mkmf.rb
@@ -0,0 +1,21 @@
+--- lib/mkmf.rb.orig Fri Apr 23 23:25:28 2004
++++ lib/mkmf.rb Tue Jul 13 15:57:40 2004
+@@ -670,7 +670,7 @@
+ ldirs.concat(defaults.collect {|dir| dir + "/lib"})
+ ldir = ([ldir] + ldirs).compact.join(File::PATH_SEPARATOR)
+ end
+- $LIBPATH |= ldirs
++ $LIBPATH = ldirs | $LIBPATH
+
+ [idir, ldir]
+ end
+@@ -969,8 +969,7 @@
+ $LIBRUBYARG = ""
+ $LIBRUBYARG_STATIC = config['LIBRUBYARG_STATIC']
+ $LIBRUBYARG_SHARED = config['LIBRUBYARG_SHARED']
+- $LIBPATH = CROSS_COMPILING ? [] : ["$(libdir)"]
+- $LIBPATH.unshift("$(topdir)") if $extmk
++ $LIBPATH = $extmk ? ["$(topdir)"] : CROSS_COMPILING ? [] : ["$(libdir)"]
+ $INSTALLFILES = nil
+
+ $objs = nil