summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-07-17 13:57:47 +0000
committerOlivier Blin <oblin@mandriva.com>2007-07-17 13:57:47 +0000
commit12b24b0469747e04eb7f77bd43d8ef7fca2cbf21 (patch)
tree557a4aab00bf2523cc659e6e806b4676a13f9c6d /mdk-stage1
parent4695022767ea01bb9809673e5b2e64bf8e860c18 (diff)
downloaddrakx-backup-do-not-use-12b24b0469747e04eb7f77bd43d8ef7fca2cbf21.tar
drakx-backup-do-not-use-12b24b0469747e04eb7f77bd43d8ef7fca2cbf21.tar.gz
drakx-backup-do-not-use-12b24b0469747e04eb7f77bd43d8ef7fca2cbf21.tar.bz2
drakx-backup-do-not-use-12b24b0469747e04eb7f77bd43d8ef7fca2cbf21.tar.xz
drakx-backup-do-not-use-12b24b0469747e04eb7f77bd43d8ef7fca2cbf21.zip
link init with stage1 libc (oh no, we are losing 6k!) since minilibc use removed _syscallX() macros (and I don't want to reinvent the wheel)
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/Makefile15
1 files changed, 4 insertions, 11 deletions
diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile
index a2019cb12..a1736a626 100644
--- a/mdk-stage1/Makefile
+++ b/mdk-stage1/Makefile
@@ -26,7 +26,7 @@ PRODUCT=drakx-installer-binaries
# Currently:
#
# ix86
- # init with minilibc
+ # init with dietlibc
# stage1 with dietlibc
#
# ppc
@@ -38,7 +38,7 @@ PRODUCT=drakx-installer-binaries
# stage1 with glibc
#
# x86-64
- # init with minilibc
+ # init with dietlibc
# stage1 with dietlibc
#
#*****************************************************************************
@@ -58,15 +58,8 @@ DEFS = -DDISTRIB_NAME=\"$(DISTRIB_NAME)\" -DDISTRIB_VERSION=\"$(DISTRIB_VERSION)
COMPILE = $(CC) $(DEFS) $(CFLAGS)
INIT_DEFS =
-ifeq (DIETLIBC, $(L))
-INIT_DEFS += -DINIT_HEADERS=\"minilibc.h\"
-endif
-
-ifeq (DIETLIBC, $(L))
-INITSRC = minilibc.c init.c
-INIT_DEFS += -fno-builtin
-else
INITSRC = init.c
+ifneq (DIETLIBC, $(L))
INIT_DEFS += $(GLIBC_INCLUDES)
endif
@@ -159,7 +152,7 @@ dirs:
[ "$$n" = "." ] || make -C $$n || exit 1 ;\
done
-init: $(INITOBJS)
+init: $(INITOBJS) $(STAGE1_LIBC)
$(DIET) $(CC) $(LDFLAGS) -o $@ $^
$(STRIPCMD) $@