[PATCH] uml: fix compilation and execution with hardened GCC
[linux-2.6-microblaze.git] / arch / um / kernel / skas / Makefile
1 #
2 # Copyright (C) 2002 - 2004 Jeff Dike (jdike@addtoit.com)
3 # Licensed under the GPL
4 #
5
6 obj-y := clone.o exec_kern.o mem.o mmu.o process_kern.o \
7         syscall.o tlb.o uaccess.o
8
9 USER_OBJS := clone.o
10
11 include arch/um/scripts/Makefile.rules
12
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
16
17 CFLAGS_clone.o := $(CFLAGS_NO_HARDENING)
18
19 # since we're setting c_flags we _must_ add $(CFLAGS_$(*F).o).
20
21 $(obj)/clone.o : c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) $(CFLAGS_$(*F).o)