chiark / gitweb /
[PATCH] added klibc version 0.82 (cvs tree) to the udev tree.
[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 # Comment this out to compile with register parameter passing
11 # This doesn't work right now because gcc 3.2 (at least) calls
12 # libgcc with the default calling convention instead of forcing
13 # them to be cdecl
14 # REGPARM = -mregparm=3 -DREGPARM
15
16 gcc_major := $(shell $(CC) -v 2>&1 | awk '/gcc version/{print int($$3)}')
17
18 OPTFLAGS = $(REGPARM) -march=i386 -Os
19
20 ifeq ($(gcc_major),3)
21 OPTFLAGS += -falign-functions=0 -falign-jumps=0 -falign-loops=0
22 else
23 OPTFLAGS += -malign-functions=0 -malign-jumps=0 -malign-loops=0
24 endif
25
26 BITSIZE  = 32
27
28 # Extra linkflags when building the shared version of the library
29 # This address needs to be reachable using normal inter-module
30 # calls, and work on the memory models for this architecture
31 # 96 MB - normal binaries start at 128 MB
32 SHAREDFLAGS     = -Ttext 0x06000200