chiark / gitweb /
516b1b67381489b8956ebdd023e331db899747e2
[elogind.git] / klibc / klibc / arch / i386 / MCONFIG
1 # -*- makefile -*-
2 #
3 # arch/i386/MCONFIG
4 #
5 # Special rules for this architecture.  Note that this is actually
6 # included from the main Makefile, and that pathnames should be
7 # accordingly.
8 #
9
10 # Enable this to compile with register parameters; only safe for
11 # gcc > 3
12 REGPARM_OPT := -mregparm=3 -DREGPARM
13
14 gcc_major := $(shell $(CC) -v 2>&1 | awk '/gcc version/{print int($$3)}')
15
16 OPTFLAGS = $(REGPARM) -march=i386 -Os
17
18 ifeq ($(gcc_major),3)
19 REGPARM  := $(REGPARM_OPT)
20 OPTFLAGS += -falign-functions=0 -falign-jumps=0 -falign-loops=0
21 else
22 OPTFLAGS += -malign-functions=0 -malign-jumps=0 -malign-loops=0
23 endif
24
25 BITSIZE  = 32
26
27 # Extra linkflags when building the shared version of the library
28 # This address needs to be reachable using normal inter-module
29 # calls, and work on the memory models for this architecture
30 # 96 MB - normal binaries start at 128 MB
31 SHAREDFLAGS     = -Ttext 0x06000200