blob: 834c84d47b5cfe07144e96feb54c4eb719b9f9e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- extconf.rb.orig Mon Jun 25 07:08:39 2001
+++ extconf.rb Tue Jun 26 06:06:49 2001
@@ -1,5 +1,13 @@
require 'mkmf'
+glib_config = with_config("glib-config", "glib-config")
+$CFLAGS += " " + %x(#{glib_config} --cflags).chomp
+$LDFLAGS += " " + %x(#{glib_config} --libs).chomp
+
+gtk_config = with_config("gtk-config", "gtk-config")
+$CFLAGS += " " + %x(#{gtk_config} --cflags).chomp
+$LDFLAGS += " " + %x(#{gtk_config} --libs).chomp
+
$objs = ["rbglade.o"]
dir_config("glade")
@@ -16,5 +24,3 @@
end
create_makefile("lglade")
-system('echo LDFLAGS+=`gtk-config --libs` >> Makefile')
-system('echo CFLAGS+=`gtk-config --cflags` >> Makefile')
|