pass BR2__UCLIBC_SUSV3_LEGACY down to ltp
[buildroot.git] / package / ltp-testsuite / ltp-testsuite.susv3-legacy.patch
blob43802785f3223038c8bdfdcd67c7094035e511ea
1 --- ltp-full-20080831.orig//testcases/kernel/syscalls/ipc/lib/Makefile 2008-08-31 16:33:16.000000000 +0200
2 +++ ltp-full-20080831/testcases/kernel/syscalls/ipc/lib/Makefile 2008-09-12 19:40:10.000000000 +0200
3 @@ -16,6 +16,7 @@
4 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
7 +ifeq ($(UCLIBC_SUSV3_LEGACY),y)
8 SRCS = libipc.c
9 OBJS = $(SRCS:.c=.o)
10 LIBIPC = ../libipc.a
11 @@ -23,6 +24,7 @@
13 CFLAGS += -I../../../../../include -Wall
14 CFLAGS += -D_USC_LIB_
15 +endif
17 all: $(LIBIPC)
19 --- ltp-full-20080831.orig/testcases/kernel/sched/tool/Makefile 2008-08-31 16:33:19.000000000 +0200
20 +++ ltp-full-20080831/testcases/kernel/sched/tool/Makefile 2008-09-12 19:40:12.000000000 +0200
21 @@ -2,6 +2,9 @@
22 LDLIBS := -lpthread
24 SRCS=$(wildcard *.c)
25 +ifneq ($(UCLIBC_SUSV3_LEGACY),y)
26 +SRCS:=$(filter-out trace_sched.c,$(SRCS))
27 +endif
28 TARGETS=$(patsubst %.c,%,$(SRCS))
30 all: $(TARGETS)
31 --- ltp-full-20080831.orig/testcases/kernel/mem/hugetlb/lib/Makefile 2008-08-31 16:33:03.000000000 +0200
32 +++ ltp-full-20080831/testcases/kernel/mem/hugetlb/lib/Makefile 2008-09-12 19:40:31.000000000 +0200
33 @@ -21,13 +21,15 @@
34 # description : make(1) description file to build a library for the #
35 # common routines in the ipc(2) tests. #
36 #########################################################################
37 +ifeq ($(UCLIBC_SUSV3_LEGACY),y)
38 SRCS=libipc.c
39 OBJS=$(SRCS:.c=.o)
40 MAINS=libipc.a
41 CFLAGS+=-I../../../../../include -g -Wall
42 CFLAGS+=-D_USC_LIB_
43 +endif
45 -all: libipc.a
46 +all: $(MAINS)
48 libipc.a: $(OBJS)
49 $(AR) -rc $@ $(OBJS)