summaryrefslogtreecommitdiff
path: root/x11/ruby-gtk/patches/patch-aa
blob: 9dc2fbb01dcf2222b388fe85447715db875590c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$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