summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-12 17:50:31 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-12 17:50:31 +0000
commit58a9726c7893e94d5996b9a4a8ef8ca19cc5d300 (patch)
tree5b68cbff57ed63c55b98a72445d1636091830053 /mdk-stage1
parent92ae1e8e294770b665e538fd09c2e69611b151db (diff)
downloaddrakx-58a9726c7893e94d5996b9a4a8ef8ca19cc5d300.tar
drakx-58a9726c7893e94d5996b9a4a8ef8ca19cc5d300.tar.gz
drakx-58a9726c7893e94d5996b9a4a8ef8ca19cc5d300.tar.bz2
drakx-58a9726c7893e94d5996b9a4a8ef8ca19cc5d300.tar.xz
drakx-58a9726c7893e94d5996b9a4a8ef8ca19cc5d300.zip
don't use minilibc.h on ppc
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile
index ef47696fc..ce928abed 100644
--- a/mdk-stage1/Makefile
+++ b/mdk-stage1/Makefile
@@ -51,14 +51,24 @@ DEFS = -DVERSION=\"$(VERSION)\" -DSPAWN_SHELL $(ADDITIONAL_DEFS) -D_FILE_OFFSET_
COMPILE = $(CC) $(DEFS) $(CFLAGS)
+ifeq (ppc, $(ARCH))
+INIT_HEADERS=init-libc-headers.h
+else
+ifeq (DIETLIBC, $(L))
+INIT_HEADERS=minilibc.h
+else
+INIT_HEADERS=init-libc-headers.h
+endif
+endif
+
+INIT_DEFS = -DINIT_HEADERS=\"$(INIT_HEADERS)\"
- #- stage1 "loader"
ifeq (DIETLIBC, $(L))
INITSRC = minilibc.c init.c
-INIT_DEFS = -DINIT_HEADERS=\"minilibc.h\" -fno-builtin
+INIT_DEFS += -fno-builtin
else
INITSRC = init.c
-INIT_DEFS = -DINIT_HEADERS=\"init-libc-headers.h\" $(GLIBC_INCLUDES)
+INIT_DEFS += $(GLIBC_INCLUDES)
endif
INIT_DEFS_ADD = -DBINARY=\"/sbin/stage1\"