tests: use LDFLAGS instead of CFLAGS for libraries
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Feb 2012 14:49:04 +0000 (09:49 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Feb 2012 14:49:04 +0000 (09:49 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/Makefile.am
tests/ust-nevents/Makefile.am
tests/ust-nprocesses/Makefile.am

index 1dd8bbea7b5e3d27671c3bec78e8cd53f0acb03d..8dd05a4f0cfb646fdf6cc590a7229fdddeaa3df5 100644 (file)
@@ -1,6 +1,7 @@
 SUBDIRS = .
 
-AM_CFLAGS=-g -Wall -lurcu -lurcu-cds
+AM_CFLAGS = -g -Wall
+AM_LDFLAGS = -lurcu -lurcu-cds
 
 EXTRA_DIST = runall.sh utils.sh lttng/runall.sh lttng/run-kernel-tests.sh
 
index 3cec0ed635ae6e912b8955c8622db0bd84ca7199..29652dcbbccb214a828eedc41214c8bd6baddb05 100644 (file)
@@ -2,10 +2,10 @@ AM_CFLAGS = -I. -O2
 AM_LDFLAGS = -llttng-ust
 
 if LTTNG_TOOLS_BUILD_WITH_LIBDL
-AM_CFLAGS += -ldl
+AM_LDFLAGS += -ldl
 endif
 if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
-AM_CFLAGS += -lc
+AM_LDFLAGS += -lc
 endif
 
 noinst_PROGRAMS = gen-nevents
index abdc7ff645998eb89766f412ac8dfaa0c2559174..d3fdcbd4120cf5bdcf5c17250fbae09eabffd1dc 100644 (file)
@@ -2,10 +2,10 @@ AM_CFLAGS = -I. -O2
 AM_LDFLAGS = -llttng-ust
 
 if LTTNG_TOOLS_BUILD_WITH_LIBDL
-AM_CFLAGS += -ldl
+AM_LDFLAGS += -ldl
 endif
 if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
-AM_CFLAGS += -lc
+AM_LDFLAGS += -lc
 endif
 
 noinst_PROGRAMS = gen-events-time
This page took 0.034202 seconds and 4 git commands to generate.