chiark / gitweb /
volume_id: provide libvolume_id.a file
[elogind.git] / klibc / klibc / arch / cris / MCONFIG
1 # -*- makefile -*-
2 #
3 # arch/cris/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 OPTFLAGS = -Os -fomit-frame-pointer
11 BITSIZE  = 32
12
13 # Extra linkflags when building the shared version of the library
14 # This address needs to be reachable using normal inter-module
15 # calls, and work on the memory models for this architecture
16 # 224 MB - normal binaries start at 0
17 # (lib?)gcc on cris seems to insist on producing .init and .fini sections
18 SHAREDFLAGS     = --section-start .init=0x0e000100
19
20 # The CRIS compiler needs an -iprefix to find libgcc includes when
21 # nostdinc is used. It also needs -mlinux to compile linux applications.
22 INCLUDE_PREFIX  = $(shell $(CC) -print-libgcc-file-name | sed -e s/libgcc.a//)
23 ARCHREQFLAGS = -iprefix $(INCLUDE_PREFIX) -mlinux
24
25 # Special flags needed for linking
26 LDFLAGS         += -mcrislinux