Hi! Makefiles for io_xxx syscall tests contains line: LDFLAGS += $(AIO_LIBS)
Which leads to wrong order of flags passed to the linker and compilation failure on certain linux systems. Changing these lines to: LDLIBS += $(AIO_LIBS) Fixes this problem. Patch is attached. Signed-off-by: Cyril Hrubis [email protected] -- Cyril Hrubis [email protected]
Index: ltp-full-20100430/testcases/kernel/syscalls/io_cancel/Makefile =================================================================== --- ltp-full-20100430.orig/testcases/kernel/syscalls/io_cancel/Makefile +++ ltp-full-20100430/testcases/kernel/syscalls/io_cancel/Makefile @@ -20,6 +20,6 @@ top_srcdir ?= ../../../.. include $(top_srcdir)/include/mk/testcases.mk -LDFLAGS += $(AIO_LIBS) +LDLIBS += $(AIO_LIBS) include $(top_srcdir)/include/mk/generic_leaf_target.mk Index: ltp-full-20100430/testcases/kernel/syscalls/io_destroy/Makefile =================================================================== --- ltp-full-20100430.orig/testcases/kernel/syscalls/io_destroy/Makefile +++ ltp-full-20100430/testcases/kernel/syscalls/io_destroy/Makefile @@ -20,6 +20,6 @@ top_srcdir ?= ../../../.. include $(top_srcdir)/include/mk/testcases.mk -LDFLAGS += $(AIO_LIBS) +LDLIBS += $(AIO_LIBS) include $(top_srcdir)/include/mk/generic_leaf_target.mk Index: ltp-full-20100430/testcases/kernel/syscalls/io_getevents/Makefile =================================================================== --- ltp-full-20100430.orig/testcases/kernel/syscalls/io_getevents/Makefile +++ ltp-full-20100430/testcases/kernel/syscalls/io_getevents/Makefile @@ -20,6 +20,6 @@ top_srcdir ?= ../../../.. include $(top_srcdir)/include/mk/testcases.mk -LDFLAGS += $(AIO_LIBS) +LDLIBS += $(AIO_LIBS) include $(top_srcdir)/include/mk/generic_leaf_target.mk Index: ltp-full-20100430/testcases/kernel/syscalls/io_setup/Makefile =================================================================== --- ltp-full-20100430.orig/testcases/kernel/syscalls/io_setup/Makefile +++ ltp-full-20100430/testcases/kernel/syscalls/io_setup/Makefile @@ -20,6 +20,6 @@ top_srcdir ?= ../../../.. include $(top_srcdir)/include/mk/testcases.mk -LDFLAGS += $(AIO_LIBS) +LDLIBS += $(AIO_LIBS) include $(top_srcdir)/include/mk/generic_leaf_target.mk Index: ltp-full-20100430/testcases/kernel/syscalls/io_submit/Makefile =================================================================== --- ltp-full-20100430.orig/testcases/kernel/syscalls/io_submit/Makefile +++ ltp-full-20100430/testcases/kernel/syscalls/io_submit/Makefile @@ -20,6 +20,6 @@ top_srcdir ?= ../../../.. include $(top_srcdir)/include/mk/testcases.mk -LDFLAGS += $(AIO_LIBS) +LDLIBS += $(AIO_LIBS) include $(top_srcdir)/include/mk/generic_leaf_target.mk
------------------------------------------------------------------------------
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
