summaryrefslogtreecommitdiff
path: root/x11/ruby-gnome2/files/patch-extconf.rb
blob: 6881c14db6274d37df769445c4f7d48d5be0f30d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- extconf.rb.orig	Sat Sep 23 06:00:02 2000
+++ extconf.rb	Wed Feb 28 20:59:59 2001
@@ -21,11 +21,12 @@
   config_library = "gnomeui"
   version = `#{config_cmd} --version`
   if not version.chomp.empty? then
-    $LDFLAGS, *libs =
+    ldflags, *libs =
       `#{config_cmd} #{config_libs} #{config_library}`.chomp.split(/(-l.*)/)
+    $LDFLAGS += ldflags
     $libs = libs.join(' ') + ' ' + $libs
-    $CFLAGS = `#{config_cmd} #{config_cflags} #{config_library}`.chomp
-    $CFLAGS = $CFLAGS + " -DHAVE_GDKIMLIB -I../../gtk/src  -I../../gdkimlib"
+    $CFLAGS += `#{config_cmd} #{config_cflags} #{config_library}`.chomp
+    $CFLAGS += " -DHAVE_GDKIMLIB -I../../gtk/src  -I../../gdkimlib"
   else
     raise "can't find a config command"
   end