summaryrefslogtreecommitdiff
path: root/x11/ruby-gtk/patches/patch-aa
blob: 6f75d411c3b0b2f294f0df4ad8418f17f37ae8dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aa,v 1.4 2001/06/30 15:23:02 taca 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