From: Mathieu Desnoyers Date: Thu, 23 Feb 2012 14:49:04 +0000 (-0500) Subject: tests: use LDFLAGS instead of CFLAGS for libraries X-Git-Tag: v2.0.0-rc3~39 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e3db14eabc8db4d700c48ce8168e116c1e561aa7;p=lttng-tools.git tests: use LDFLAGS instead of CFLAGS for libraries Signed-off-by: Mathieu Desnoyers --- 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