From: Garrett C. <yan...@gm...> - 2011-02-10 15:55:29
|
On Thu, Feb 10, 2011 at 12:52 AM, Han Pingtian <ph...@re...> wrote: > cpuset_syscall_test now depends on numa lib: > > make[1]: Entering directory `/root/ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test' > gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -I/root/ltp/testcases/kernel/include -I../../../../../include -I../../../../../include -L/root/ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test/../cpuset_lib -L/root/ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test/../../libcontrollers -L../../../../../lib cpuset_syscall_test.c -lltp -lcpu_set -lcontrollers -lltp -o cpuset_syscall_test > /root/ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test/../cpuset_lib/libcpu_set.a(libcpuset.o): In function `cpuset_addr2node': > /root/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c:3455: undefined reference to `get_mempolicy' > /root/ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test/../cpuset_lib/libcpu_set.a(libcpuset.o): In function `cpuset_membind': > /root/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c:3439: undefined reference to `set_mempolicy' > /root/ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test/../cpuset_lib/libcpu_set.a(libcpuset.o): In function `cpuset_unpin': > /root/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c:3752: undefined reference to `set_mempolicy' > collect2: ld returned 1 exit status > make[1]: *** [cpuset_syscall_test] Error 1 > make[1]: Leaving directory `/root/ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test' > make: *** [all] Error 2 > > This patch fixes this problem > > Signed-off-by: Han Pingtian <ph...@re...> > --- > .../cpuset/cpuset_syscall_test/Makefile | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/testcases/kernel/controllers/cpuset/cpuset_syscall_test/Makefile b/testcases/kernel/controllers/cpuset/cpuset_syscall_test/Makefile > index edc6265..17331fb 100644 > --- a/testcases/kernel/controllers/cpuset/cpuset_syscall_test/Makefile > +++ b/testcases/kernel/controllers/cpuset/cpuset_syscall_test/Makefile > @@ -25,3 +25,5 @@ top_srcdir ?= ../../../../.. > include $(top_srcdir)/include/mk/testcases.mk > include $(abs_srcdir)/../Makefile.inc > include $(top_srcdir)/include/mk/generic_leaf_target.mk > + > +LDLIBS += $(NUMA_LIBS) > -- For consistency this should be placed before generic_leaf_target.mk Thanks, -Garrett |