pkgsrc/x11/ruby-gtk/patches/patch-aa

13 lines
525 B
Text

$NetBSD: patch-aa,v 1.5 2001/12/16 08:18:18 jmc Exp $
--- extconf.rb.orig Thu Feb 15 17:49:31 2001
+++ extconf.rb
@@ -21,7 +21,7 @@
version = `#{config_cmd} --version`
if not version.chomp.empty?
config_libs, config_cflags = "--libs", "--cflags"
- $LDFLAGS, *libs = `#{config_cmd} #{config_libs}`.chomp.split(/(-l.*)/)
+ $LDFLAGS, *libs = `#{config_cmd} #{config_libs}`.chomp.gsub("-Wl,", "").split(/( -l.*)/)
$libs = libs.join(' ') + ' ' + $libs
$CFLAGS = `#{config_cmd} #{config_cflags}`.chomp
break