chiark / gitweb /
volume_id: provide libvolume_id.a file
[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 -D_REGPARM=3
13
14 gcc_major := $(shell echo __GNUC__ | $(CC) -E -xc - | tail -n 1)
15
16 OPTFLAGS  = -march=i386 -Os -g -fomit-frame-pointer
17 LDFLAGS   = -m elf_i386
18
19 ifneq ($(gcc_major),2)
20 REQFLAGS += $(REGPARM_OPT)
21 OPTFLAGS += -falign-functions=0 -falign-jumps=0 -falign-loops=0
22 ARCHREQFLAGS += -m32
23 else
24 OPTFLAGS += -malign-functions=0 -malign-jumps=0 -malign-loops=0
25 endif
26
27 BITSIZE  = 32
28
29 # Extra linkflags when building the shared version of the library
30 # This address needs to be reachable using normal inter-module
31 # calls, and work on the memory models for this architecture
32 # 96 MB - normal binaries start at 128 MB
33 SHAREDFLAGS     = -Ttext 0x06000200