[oe-commits] Tom Rini : Use LDFLAGS not CFLAGS to add libraries for linking

git version control git at git.openembedded.org
Wed Oct 14 18:27:43 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 38705be757c181061380807c25fbe88363a107a2
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=38705be757c181061380807c25fbe88363a107a2

Author: Tom Rini <trini at embeddedalley.com>
Date:   Wed Oct 14 11:27:27 2009 -0700

Use LDFLAGS not CFLAGS to add libraries for linking

---

 recipes/gnome/gnome-control-center_2.28.0.bb  |    2 +-
 recipes/gnome/gnome-games_2.24.0.bb           |    2 +-
 recipes/gnome/gnome-settings-daemon_2.28.0.bb |    2 +-
 recipes/gnome/gnome-system-tools_2.27.1.bb    |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/recipes/gnome/gnome-control-center_2.28.0.bb b/recipes/gnome/gnome-control-center_2.28.0.bb
index 5cbe768..61d130a 100644
--- a/recipes/gnome/gnome-control-center_2.28.0.bb
+++ b/recipes/gnome/gnome-control-center_2.28.0.bb
@@ -7,7 +7,7 @@ DEPENDS = "metacity eel gstreamer libcanberra gnome-settings-daemon libgnomeui g
 
 inherit gnome
 
-CFLAGS += "-lgthread-2.0 -lxml2"
+LDFLAGS += "-lgthread-2.0 -lxml2"
 
 do_configure_prepend() {
 	sed -i s:help::g Makefile.am
diff --git a/recipes/gnome/gnome-games_2.24.0.bb b/recipes/gnome/gnome-games_2.24.0.bb
index 6449c82..b4e7cf4 100644
--- a/recipes/gnome/gnome-games_2.24.0.bb
+++ b/recipes/gnome/gnome-games_2.24.0.bb
@@ -36,7 +36,7 @@ do_install_append() {
 	install -m 0644 ${D}/${datadir}/icons/hicolor/48x48/apps/* ${D}/${datadir}/pixmaps
 }
 
-CFLAGS_append = " -lguile -lgmp -lcrypt -lm -lltdl"
+LDFLAGS += "-lguile -lgmp -lcrypt -lm -lltdl"
 
 FILES_${PN}-doc += " ${datadir}/gnome/help"
 FILES_${PN}-dbg += " ${bindir}/.debug ${libdir}/gnome-games/.debug"
diff --git a/recipes/gnome/gnome-settings-daemon_2.28.0.bb b/recipes/gnome/gnome-settings-daemon_2.28.0.bb
index 23f4777..43585f3 100644
--- a/recipes/gnome/gnome-settings-daemon_2.28.0.bb
+++ b/recipes/gnome/gnome-settings-daemon_2.28.0.bb
@@ -6,7 +6,7 @@ DEPENDS = "libxklavier libgnomekbd libgnomeui gnome-desktop gnome-doc-utils gtk+
 
 inherit gnome
 
-CFLAGS += "-lgthread-2.0"
+LDFLAGS += "-lgthread-2.0"
 
 FILES_${PN} += "${libdir}/gnome-settings-daemon-2.0/*.so \
                 ${libdir}/gnome-settings-daemon-2.0/*plugin \
diff --git a/recipes/gnome/gnome-system-tools_2.27.1.bb b/recipes/gnome/gnome-system-tools_2.27.1.bb
index 2911984..55bb3e6 100644
--- a/recipes/gnome/gnome-system-tools_2.27.1.bb
+++ b/recipes/gnome/gnome-system-tools_2.27.1.bb
@@ -6,7 +6,7 @@ inherit gnome pkgconfig
 
 EXTRA_OECONF = "--disable-scrollkeeper \
                "
-CFLAGS += "-lgthread-2.0"
+LDFLAGS += "-lgthread-2.0"
 
 do_configure_prepend () {
 	for i in $(find . -name "Makefile.in") ; do





More information about the Openembedded-commits mailing list