summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-misc/gtklife/files/gtklife-5.1-link.patch')
-rw-r--r--games-misc/gtklife/files/gtklife-5.1-link.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/games-misc/gtklife/files/gtklife-5.1-link.patch b/games-misc/gtklife/files/gtklife-5.1-link.patch
new file mode 100644
index 00000000000..8aae429def1
--- /dev/null
+++ b/games-misc/gtklife/files/gtklife-5.1-link.patch
@@ -0,0 +1,20 @@
+--- Makefile.in.old 2014-07-24 21:25:09.072431615 +0200
++++ Makefile.in 2014-07-24 21:26:34.898037740 +0200
+@@ -22,7 +22,7 @@
+ # Preprocessor and linking flags
+
+ CPPFLAGS:=$(CPPFLAGS) $(GTK_CFLAGS) -DVERSION=\"$(VERSION)\" -DDATADIR=\"$(pkgdatadir)\" -DDOCDIR=\"$(docdir)\"
+-LDFLAGS:=$(LDFLAGS) $(GTK_LIBS)
++LDLIBS:=$(GTK_LIBS) -lX11
+
+ # Object files
+
+@@ -51,7 +51,7 @@
+ $(INSTALL_DATA) doc/* $(docdir)
+
+ gtklife: $(OBJS)
+- $(CC) -o gtklife $(OBJS) $(LDFLAGS)
++ $(CC) -o gtklife $(OBJS) $(LDFLAGS) $(LDLIBS)
+
+ create_lookup: $(CL_OBJS)
+ $(CC) -o create_lookup $(CL_OBJS)