Skip to content

Commit 31562e4

Browse files
Let the cyclictest in musl pass
1 parent 232efa7 commit 31562e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rt-tests-2.7/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RTTESTLIB = -lrttest -L$(OBJDIR)
2525
EXTRA_LIBS ?= -ldl # for get_cpu
2626

2727
ifeq ($(CROSS_COMPILE), riscv64-buildroot-linux-musl-)
28-
LDFLAGS1 += -latomic
28+
LDFLAGS1 += -latomic -static
2929
endif
3030

3131
ifeq ($(CROSS_COMPILE), riscv64-linux-gnu-)

rt-tests-2.7/src/cyclictest/cyclictest.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ static void process_options(int argc, char *argv[], int max_cpus)
987987
/* smp sets AFFINITY_USEALL in OPT_SMP */
988988
if (smp)
989989
break;
990-
numa = numa_initialize();
990+
numa = 0;//numa_initialize();
991991
if (optarg) {
992992
parse_cpumask(optarg, max_cpus, &affinity_mask);
993993
setaffinity = AFFINITY_SPECIFIED;
@@ -1186,7 +1186,7 @@ static void process_options(int argc, char *argv[], int max_cpus)
11861186

11871187
/* if smp wasn't requested, test for numa automatically */
11881188
if (!smp) {
1189-
numa = numa_initialize();
1189+
numa = 0;//numa_initialize();
11901190
}
11911191

11921192
if (option_affinity) {

0 commit comments

Comments
 (0)