From e3db14eabc8db4d700c48ce8168e116c1e561aa7 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 23 Feb 2012 09:49:04 -0500 Subject: [PATCH] tests: use LDFLAGS instead of CFLAGS for libraries Signed-off-by: Mathieu Desnoyers --- tests/Makefile.am | 3 ++- tests/ust-nevents/Makefile.am | 4 ++-- tests/ust-nprocesses/Makefile.am | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 1dd8bbea7..8dd05a4f0 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 diff --git a/tests/ust-nevents/Makefile.am b/tests/ust-nevents/Makefile.am index 3cec0ed63..29652dcbb 100644 --- a/tests/ust-nevents/Makefile.am +++ b/tests/ust-nevents/Makefile.am @@ -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 diff --git a/tests/ust-nprocesses/Makefile.am b/tests/ust-nprocesses/Makefile.am index abdc7ff64..d3fdcbd41 100644 --- a/tests/ust-nprocesses/Makefile.am +++ b/tests/ust-nprocesses/Makefile.am @@ -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 -- 2.34.1