[PATCH] uml: fix compilation and execution with hardened GCC
[linux/fpc-iii.git] / arch / um / kernel / skas / Makefile
blobad842964707a9312ba85ac051b7461b3edec2732
2 # Copyright (C) 2002 - 2004 Jeff Dike (jdike@addtoit.com)
3 # Licensed under the GPL
6 obj-y := clone.o exec_kern.o mem.o mmu.o process_kern.o \
7 syscall.o tlb.o uaccess.o
9 USER_OBJS := clone.o
11 include arch/um/scripts/Makefile.rules
13 # clone.o is in the stub, so it can't be built with profiling
14 # GCC hardened also auto-enables -fpic, but we need %ebx so it can't work ->
15 # disable it
17 CFLAGS_clone.o := $(CFLAGS_NO_HARDENING)
19 # since we're setting c_flags we _must_ add $(CFLAGS_$(*F).o).
21 $(obj)/clone.o : c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) $(CFLAGS_$(*F).o)