[Xfce4-commits] <xfce4-sensors-plugin:master> fixed nvidia build and ac_subst the libs instead of the nvidia ldflags
Fabian Nowak
noreply at xfce.org
Mon Mar 28 12:06:01 CEST 2011
Updating branch refs/heads/master
to 5608ec0b7859a91b542e0d23e6df57cab7906761 (commit)
from 8ee04b6b287f9fa47273596128f6ea2a57aaf13f (commit)
commit 5608ec0b7859a91b542e0d23e6df57cab7906761
Author: Fabian Nowak <nowak at kit.edu>
Date: Mon Mar 28 12:05:40 2011 +0200
fixed nvidia build and ac_subst the libs instead of the nvidia ldflags
configure.in.in | 2 +-
lib/nvidia.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.in.in b/configure.in.in
index 0ca80c0..1c22802 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -242,7 +242,7 @@ if test x"$enable_xnvctrl" = x"yes"; then
NVIDIA_LIBS="-lX11 -lXext -lXNVCtrl"
enable_xnvctrl=yes
AC_SUBST([NVIDIA_CFLAGS])
-AC_SUBST([NVIDIA_LDFLAGS])
+AC_SUBST([NVIDIA_LIBS])
fi
diff --git a/lib/nvidia.c b/lib/nvidia.c
index 13d3b3e..bae4885 100644
--- a/lib/nvidia.c
+++ b/lib/nvidia.c
@@ -105,7 +105,7 @@ double get_nvidia_value (int gpu) {
TRACE ("leaves get_nvidia_value for %d gpu", gpu);
- return 1.d * temp;
+ return (double) (1.0 * temp);
}
void refresh_nvidia (gpointer chip_feature, gpointer data) {
More information about the Xfce4-commits
mailing list