LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File xchat-gnome-dso-linking.patch of Package xchat-gnome (Project openSUSE:Factory)

From 74296a4cb768e03273196dd7497f0329948abfe6 Mon Sep 17 00:00:00 2001
From: Ritesh Khadgaray <khadgaray@gmail.com>
Date: Wed, 10 Mar 2010 09:23:45 +0000
Subject: Bug 612340 - [Patch] Add missing libm & libX11 linking

XChat-GNOME fails to build due to a change DSO-linking semantics of the gcc
compiler in Fedora. For more info please refer to:
https://bugzilla.redhat.com/show_bug.cgi?id=564820
http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
http://fedoraproject.org/wiki/UnderstandingDSOLinkChange
---
diff --git a/src/fe-gnome/Makefile.am b/src/fe-gnome/Makefile.am
index 8faab84..1288ab9 100644
--- a/src/fe-gnome/Makefile.am
+++ b/src/fe-gnome/Makefile.am
@@ -113,6 +113,7 @@ xchat_gnome_CFLAGS = \
 	$(AM_CFLAGS)
 
 xchat_gnome_LDFLAGS = \
+	-lX11		\
 	-export-dynamic	\
 	$(AM_LDFLAGS)
 
diff --git a/src/libcontrast/Makefile.am b/src/libcontrast/Makefile.am
index 08daa14..857d9ab 100644
--- a/src/libcontrast/Makefile.am
+++ b/src/libcontrast/Makefile.am
@@ -12,6 +12,7 @@ libcontrast_la_CFLAGS =		\
 	$(AM_CFLAGS)
 
 libcontrast_la_LDFLAGS =	\
+	-lm			\
 	$(AM_LDFLAGS)		\
 	-static
 
--
cgit v0.9.0.2