source: vendor/glibc-tests/glibc/sysdeps/i386/Makefile

Last change on this file was 2036, checked in by bird, 20 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1# The mpn functions need a #define for asm syntax flavor.
2# Every i386 port in use uses gas syntax (I think).
3asm-CPPFLAGS += -DGAS_SYNTAX
4
5# The i386 `long double' is a distinct type we support.
6long-double-fcts = yes
7
8ifeq ($(subdir),csu)
9# On i686 we must avoid generating the trampoline functions generated
10# to get the GOT pointer.
11CFLAGS-initfini.s += -march=i386 -mtune=i386
12endif
13
14ifeq ($(subdir),gmon)
15sysdep_routines += i386-mcount
16endif
17
18ifeq ($(subdir),elf)
19CFLAGS-rtld.c += -Wno-uninitialized -Wno-unused
20CFLAGS-dl-load.c += -Wno-unused
21CFLAGS-dl-reloc.c += -Wno-unused
22endif
23
24ifeq ($(subdir),debug)
25CFLAGS-backtrace.c += -fexceptions
26endif
27
28# Most of the glibc routines don't ever call user defined callbacks
29# nor use any FPU or SSE* and as such don't need bigger %esp alignment
30# than 4 bytes.
31# Lots of routines in math will use FPU, so make math subdir an exception
32# here.
33ifeq ($(subdir),math)
34sysdep-CFLAGS += -mpreferred-stack-boundary=4
35else
36ifeq ($(subdir),csu)
37sysdep-CFLAGS += -mpreferred-stack-boundary=4
38else
39sysdep-CFLAGS += -mpreferred-stack-boundary=2
40# Likewise, any function which calls user callbacks
41uses-callbacks += -mpreferred-stack-boundary=4
42# Likewise, any stack alignment tests
43stack-align-test-flags += -malign-double -mpreferred-stack-boundary=4
44endif
45endif
46
47# And a couple of other routines
48ifeq ($(subdir),stdlib)
49CFLAGS-exit.c += -mpreferred-stack-boundary=4
50endif
51ifeq ($(subdir),elf)
52CFLAGS-dl-init.c += -mpreferred-stack-boundary=4
53CFLAGS-dl-fini.c += -mpreferred-stack-boundary=4
54CFLAGS-dl-open.c += -mpreferred-stack-boundary=4
55CFLAGS-dl-close.c += -mpreferred-stack-boundary=4
56CFLAGS-dl-error.c += -mpreferred-stack-boundary=4
57endif
58ifeq ($(subdir),dlfcn)
59CFLAGS-dlopen.c += -mpreferred-stack-boundary=4
60CFLAGS-dlopenold.c += -mpreferred-stack-boundary=4
61CFLAGS-dlclose.c += -mpreferred-stack-boundary=4
62CFLAGS-dlerror.c += -mpreferred-stack-boundary=4
63endif
64
65ifneq (,$(filter -mno-tls-direct-seg-refs,$(CFLAGS)))
66defines += -DNO_TLS_DIRECT_SEG_REFS
67endif
Note: See TracBrowser for help on using the repository browser.