summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/keynav/files/keynav-20091231.01_as-needed.patch')
-rw-r--r--x11-misc/keynav/files/keynav-20091231.01_as-needed.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/x11-misc/keynav/files/keynav-20091231.01_as-needed.patch b/x11-misc/keynav/files/keynav-20091231.01_as-needed.patch
new file mode 100644
index 0000000..3290760
--- /dev/null
+++ b/x11-misc/keynav/files/keynav-20091231.01_as-needed.patch
@@ -0,0 +1,29 @@
+From 18568a4913378fc9f9bfe4087eac637d19a03fd3 Mon Sep 17 00:00:00 2001
+From: Russell Harmon <russ@eatnumber1.com>
+Date: Thu, 31 Dec 2009 12:19:13 -0500
+Subject: [PATCH] Fix building with --as-needed
+
+---
+ Makefile | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index f168e82..9b8f406 100644
+--- a/Makefile
++++ b/Makefile
+@@ -21,10 +21,10 @@ clean:
+ keynav: keynav.o
+ @set -x; \
+ if $(LD) -lxdo > /dev/null 2>&1 ; then \
+- $(CC) $(LDFLAGS) -lxdo keynav.o -o $@; \
++ $(CC) keynav.o -o $@ $(LDFLAGS) -lxdo; \
+ else \
+ $(MAKE) xdo.o; \
+- $(CC) $(LDFLAGS) xdo.o keynav.o -o $@; \
++ $(CC) xdo.o keynav.o -o $@ $(LDFLAGS); \
+ fi
+
+ xdo.o:
+--
+1.6.4.4
+