* [PATCH RT-TESTS] rt-tests Makefile: Added missing dependencies
@ 2012-12-06 10:10 jackie.huang
0 siblings, 0 replies; only message in thread
From: jackie.huang @ 2012-12-06 10:10 UTC (permalink / raw)
To: linux-rt-users; +Cc: Jackie.Huang
From: Jackie Huang <jackie.huang@windriver.com>
Hi,
When I make with -j 4 option, I got the following error sometimes:
cc -Wall -Wno-nonnull -O2 -DNUMA -o pi_stress pi_stress.o -lrt -lpthread -lrttest -L.
cc -Wall -Wno-nonnull -O2 -DNUMA -o rt-migrate-test rt-migrate-test.o -lrt -lpthread -lrttest -L.
cc -Wall -Wno-nonnull -O2 -DNUMA -o hackbench hackbench.o -lrt -lpthread -lrttest -L.
//usrusr/bin/ld: cannot find /-bin/ldlrttest:
cannot find -collect2: lrttest
collect2: ld returned 1 exit status
ld returned 1 exit status
/usr/bin/ld: cannot find -lrttest
collect2: ld returned 1 exit status
which indecates that the following targets missed dependency on librttest.a:
pi_stress
rt-migrate-test
hackbench
so this patch add these missing dependencies.
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index fd3cdb3..60707a7 100644
--- a/Makefile
+++ b/Makefile
@@ -68,14 +68,14 @@ cyclictest: cyclictest.o librttest.a
signaltest: signaltest.o librttest.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
-pi_stress: pi_stress.o
+pi_stress: pi_stress.o librttest.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
hwlatdetect: src/hwlatdetect/hwlatdetect.py
chmod +x src/hwlatdetect/hwlatdetect.py
ln -s src/hwlatdetect/hwlatdetect.py hwlatdetect
-rt-migrate-test: rt-migrate-test.o
+rt-migrate-test: rt-migrate-test.o librttest.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
ptsematest: ptsematest.o librttest.a
@@ -96,7 +96,7 @@ sendme: sendme.o librttest.a
pip_stress: pip_stress.o librttest.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
-hackbench: hackbench.o
+hackbench: hackbench.o librttest.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
librttest.a: rt-utils.o error.o rt-get_cpu.o
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-06 10:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06 10:10 [PATCH RT-TESTS] rt-tests Makefile: Added missing dependencies jackie.huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).