Documentation: update vDSO makefile to build portable examples
authorPeter Foley <pefoley2@pefoley.com>
Thu, 25 Sep 2014 18:23:43 +0000 (11:23 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 26 Sep 2014 09:03:00 +0000 (11:03 +0200)
Signed-off-by: Peter Foley <pefoley2@pefoley.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Documentation/vDSO/Makefile

index 6cbd61270de5d5e2c66f8ef0c27d414b308b9b5e..d87bb29afd2afbf52ad062eda9a7742cecad60d2 100644 (file)
@@ -1,9 +1,12 @@
 # List of programs to build
-hostprogs-$(CONFIG_X86) := vdso_test
+hostprogs-y := vdso_test
+hostprogs-$(CONFIG_X86) := vdso_standalone_test_x86
+vdso_standalone_test_x86-objs := vdso_standalone_test_x86.o parse_vdso.o
 vdso_test-objs := parse_vdso.o vdso_test.o
 
 # Tell kbuild to always build the programs
-##always := $(hostprogs-y)
+always := $(hostprogs-y)
 
 HOSTCFLAGS := -I$(objtree)/usr/include -std=gnu99
-HOSTLDFLAGS = -nostdlib -fno-asynchronous-unwind-tables
+HOSTCFLAGS_vdso_standalone_test_x86.o := -fno-asynchronous-unwind-tables -fno-stack-protector
+HOSTLOADLIBES_vdso_standalone_test_x86 := -nostdlib