From 14187e6eeeaec179a59825611445ce806f07ac31 Mon Sep 17 00:00:00 2001
From: Travis Shirk <travis@pobox.com>
Date: Thu, 18 May 2006 00:11:58 +0000
Subject: [PATCH] A friend running OpenBox on Debian had an undefined
 trayicons_functions symbol which prevented the trayicon from loading.  This
 patch fixes that.

---
 src/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index 664b8241ba..6b40fc1dfe 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -8,10 +8,10 @@ all: trayicon.so gtkspell.so
 
 # Build the shared objects
 trayicon.so: trayicon.o eggtrayicon.o trayiconmodule.o
-	$(CC) $(LDFLAGS) -shared $^ -o $@
+	$(CC) -shared $^ -o $@ $(LDFLAGS)
 
 gtkspell.so:
-	$(CC) $(OPTFLAGS) $(CFLAGS) $(LDFLAGS) `pkg-config --libs --cflags gtkspell-2.0` -shared gtkspellmodule.c $^ -o $@
+	$(CC) $(OPTFLAGS) $(CFLAGS)   `pkg-config --cflags gtkspell-2.0` -shared gtkspellmodule.c $^ -o $@ $(LDFLAGS) `pkg-config --libs gtkspell-2.0` 
 
 # The path to the GTK+ python types
 DEFS=`pkg-config --variable=defsdir pygtk-2.0`
-- 
GitLab