about summary refs log tree commit diff
path: root/linuxthreads/sysdeps/i386/Makefile
blob: 418fa5c6efe0853b6412eb0551abee2ad2c4c291 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ifeq ($(subdir),linuxthreads)
# On i686 we must avoid generating the trampoline functions generated
# to get the GOT pointer.
CFLAGS-pt-initfini.s += -march=i386 -mcpu=i386

# Most files must not be compiled without frame pointer since we need
# the frame base address which is stored in %ebp unless the frame pointer
# is optimized out.
CFLAGS-cancel.c += -fno-omit-frame-pointer -mpreferred-stack-boundary=4
CFLAGS-condvar.c += -fno-omit-frame-pointer
CFLAGS-join.c += -fno-omit-frame-pointer
CFLAGS-manager.c += -fno-omit-frame-pointer -mpreferred-stack-boundary=4
CFLAGS-oldsemaphore.c += -fno-omit-frame-pointer
CFLAGS-pthread.c += -fno-omit-frame-pointer -mpreferred-stack-boundary=4
CFLAGS-ptlongjmp.c += -fno-omit-frame-pointer
CFLAGS-semaphore.c += -fno-omit-frame-pointer
CFLAGS-sighandler.c += -fno-omit-frame-pointer -mpreferred-stack-boundary=4
CFLAGS-tst-align.c += -mpreferred-stack-boundary=4
endif

ifeq ($(subdir),csu)
gen-as-const-headers += tcb-offsets.sym
endif