summaryrefslogtreecommitdiffstats
path: root/x11-libs/gtk+/files/gtk+-1.2.10-alt-linkage.patch
blob: 04a967cb20e5961e87f35d907e16c26061656ffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
diff -uprk.orig gtk+-1.2.10.orig/gdk.pc.in gtk+-1.2.10/gdk.pc.in
--- gtk+-1.2.10.orig/gdk.pc.in	2000-11-30 04:18:35 +0300
+++ gtk+-1.2.10/gdk.pc.in	2004-08-26 18:05:20 +0400
@@ -7,5 +7,5 @@ Name: GDK
 Description: GIMP Drawing Kit
 Version: @VERSION@
 Requires: glib
-Libs: -L${libdir} @x_ldflags@ -lgdk @INTLLIBS@ @GDK_WLIBS@ @x_libs@ -lm
+Libs: -L${libdir} @x_ldflags@ -lgdk
 Cflags: -I${includedir}/gtk-1.2 @x_cflags@
diff -uprk.orig gtk+-1.2.10.orig/gtk/Makefile.am gtk+-1.2.10/gtk/Makefile.am
--- gtk+-1.2.10.orig/gtk/Makefile.am	2004-08-26 17:09:34 +0400
+++ gtk+-1.2.10/gtk/Makefile.am	2004-08-26 18:05:20 +0400
@@ -32,7 +32,7 @@ libgtk_la_LDFLAGS = @STRIP_BEGIN@ \
 	@x_libs@ 						\
 	-lm							\
 @STRIP_END@
-#	$(top_builddir)/gdk/libgdk.la
+libgtk_la_LIBADD = $(top_builddir)/gdk/libgdk.la
 
 
 #
@@ -424,10 +424,9 @@ uninstall-local:
 # test programs, not to be installed
 #
 noinst_PROGRAMS = testgtk testinput testselection testrgb testdnd simple # testthreads
-DEPS = libgtk.la $(top_builddir)/gdk/libgdk.la
+DEPS = libgtk.la
 LDADDS = @STRIP_BEGIN@ \
 	libgtk.la			\
-	$(top_builddir)/gdk/libgdk.la	\
 	@x_ldflags@			\
 	@x_libs@			\
 	@GDK_WLIBS@			\
diff -uprk.orig gtk+-1.2.10.orig/gtk/Makefile.in gtk+-1.2.10/gtk/Makefile.in
--- gtk+-1.2.10.orig/gtk/Makefile.in	2004-08-26 17:09:34 +0400
+++ gtk+-1.2.10/gtk/Makefile.in	2004-08-26 18:10:32 +0400
@@ -137,7 +137,6 @@ lib_LTLIBRARIES = libgtk.la
 libgtkincludedir = $(includedir)/gtk-1.2/gtk
 libgtk_la_LDFLAGS = @STRIP_BEGIN@ 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)		-release $(LT_RELEASE) 						-export-dynamic							@GLIB_DEPLIBS@ 							@x_ldflags@							@x_libs@ 							-lm							@STRIP_END@
 
-#	$(top_builddir)/gdk/libgdk.la
 
 #
 # setup source file variables
@@ -198,8 +197,8 @@ gtkconf_DATA = gtkrc.az gtkrc.be gtkrc.e
 # test programs, not to be installed
 #
 noinst_PROGRAMS = testgtk testinput testselection testrgb testdnd simple # testthreads
-DEPS = libgtk.la $(top_builddir)/gdk/libgdk.la
-LDADDS = @STRIP_BEGIN@ 	libgtk.la				$(top_builddir)/gdk/libgdk.la		@x_ldflags@				@x_libs@				@GDK_WLIBS@				@GLIB_LIBS@				-lm				@STRIP_END@
+DEPS = libgtk.la
+LDADDS = @STRIP_BEGIN@ 	libgtk.la		@x_ldflags@				@x_libs@				@GDK_WLIBS@				@GLIB_LIBS@				-lm				@STRIP_END@
 
 testgtk_DEPENDENCIES = $(DEPS)
 testinput_DEPENDENCIES = $(DEPS)
@@ -228,7 +227,8 @@ X_CFLAGS = @X_CFLAGS@
 X_LIBS = @X_LIBS@
 X_EXTRA_LIBS = @X_EXTRA_LIBS@
 X_PRE_LIBS = @X_PRE_LIBS@
-libgtk_la_LIBADD = 
+libgtk_la_LIBADD = $(top_builddir)/gdk/libgdk.la
+libgtk_la_DEPENDENCIES = $(top_builddir)/gdk/libgdk.la
 libgtk_la_OBJECTS =  gtkaccelgroup.lo gtkaccellabel.lo gtkadjustment.lo \
 gtkalignment.lo gtkarg.lo gtkarrow.lo gtkaspectframe.lo gtkbin.lo \
 gtkbindings.lo gtkbbox.lo gtkbox.lo gtkbutton.lo gtkcalendar.lo \
diff -uprk.orig gtk+-1.2.10.orig/gtk-config.in gtk+-1.2.10/gtk-config.in
--- gtk+-1.2.10.orig/gtk-config.in	2000-10-21 22:20:40 +0400
+++ gtk+-1.2.10/gtk-config.in	2004-08-26 18:18:31 +0400
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-glib_libs="@glib_libs@"
+glib_libs=
 glib_cflags="@glib_cflags@"
 glib_thread_libs="@glib_thread_libs@"
 glib_thread_cflags="@glib_thread_cflags@"
@@ -107,6 +107,6 @@ if test "$echo_libs" = "yes"; then
         fi
       done
 
-      echo $libdirs @x_ldflags@ -lgtk -lgdk $my_glib_libs @INTLLIBS@ @x_libs@ @GDK_WLIBS@ -lm
+      echo $libdirs @x_ldflags@ -lgtk $my_glib_libs
 fi