aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-12-08 17:58:21 +0000
committerEmil Velikov <[email protected]>2017-01-18 16:01:14 +0000
commit4380a2098b61cfa0dd3855bd63d3c8b70ce25dd5 (patch)
tree8081e92f439e74732837117c5100025a9a4c3382 /src/gallium
parentcb5e799448c959fa9f0d7ea76999ac6f8c0ad88e (diff)
gallium: correctly manage libsensors link flags
We should be using LIBS rather than the LDFLAGS variable. Furthermore try to keep the linking to the final stage, rather than intermetent static library. Cc: Steven Toth <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/Automake.inc1
-rw-r--r--src/gallium/auxiliary/Makefile.am2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/Automake.inc b/src/gallium/Automake.inc
index 6aadcb91983..a01fa540531 100644
--- a/src/gallium/Automake.inc
+++ b/src/gallium/Automake.inc
@@ -46,6 +46,7 @@ GALLIUM_TARGET_CFLAGS = \
GALLIUM_COMMON_LIB_DEPS = \
-lm \
+ $(LIBSENSORS_LIBS) \
$(CLOCK_LIB) \
$(PTHREAD_LIBS) \
$(DLOPEN_LIBS)
diff --git a/src/gallium/auxiliary/Makefile.am b/src/gallium/auxiliary/Makefile.am
index 1154c791311..def00980308 100644
--- a/src/gallium/auxiliary/Makefile.am
+++ b/src/gallium/auxiliary/Makefile.am
@@ -44,8 +44,6 @@ libgallium_la_SOURCES += \
endif
-libgallium_la_LDFLAGS = $(LIBSENSORS_LDFLAGS)
-
MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D)
PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS)