Skip to content

Commit

Permalink
Documentation: update vDSO makefile to build portable examples
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Foley <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
pefoley2 authored and Jiri Kosina committed Sep 26, 2014
1 parent c5e2a7e commit 1556582
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Documentation/vDSO/Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1556582

Please sign in to comment.