[PATCH RT-TESTS] rt-tests Makefile: Added missing dependencies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jackie Huang <jackie.huang@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux