summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeunSik Lim <leemgs1@gmail.com>2010-01-21 01:09:30 +0100
committerClark Williams <williams@redhat.com>2010-01-26 12:14:30 -0600
commit8947c646fed2afa8aacf7c816ab381b021a467fe (patch)
treebacb441f1df5d53554bd5d312132acae5487b613
parent582be2a52c43801a10d318de7491f1cc7243d5cf (diff)
downloadrt-tests-8947c646fed2afa8aacf7c816ab381b021a467fe.tar.gz
rt-tests: Support static linking by reordering the link flags in LIBS
Some embedded developers cross-compile the tests with the -static link flag. Reordering the link flags in LIBS to put -lrt before -lpthread is necessary, else you get undefined references to pthread calls. Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com> Signed-off-by: John Kacur <jkacur@redhat.com> Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4e1a7e3..48d98c7 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ VERSION_STRING = 0.61
TARGETS = cyclictest signaltest pi_stress \
hwlatdetect rt-migrate-test ptsematest sigwaittest svsematest \
sendme pip
-LIBS = -lpthread -lrt
+LIBS = -lrt -lpthread
EXTRA_LIBS ?= -ldl # for get_cpu
DESTDIR ?=
prefix ?= /usr/local