summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-12 17:53:45 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-12 17:53:45 +0000
commit9b3e7a42c7f10fcb433ca70a7cfab995162e62e1 (patch)
tree36cfc7909850dc9653f3837083971ff4975abe2d /mdk-stage1
parent58a9726c7893e94d5996b9a4a8ef8ca19cc5d300 (diff)
downloaddrakx-9b3e7a42c7f10fcb433ca70a7cfab995162e62e1.tar
drakx-9b3e7a42c7f10fcb433ca70a7cfab995162e62e1.tar.gz
drakx-9b3e7a42c7f10fcb433ca70a7cfab995162e62e1.tar.bz2
drakx-9b3e7a42c7f10fcb433ca70a7cfab995162e62e1.tar.xz
drakx-9b3e7a42c7f10fcb433ca70a7cfab995162e62e1.zip
drop unused INIT_LIBC, GLIBC_LIBC, DIETLIBC_LIBC (all 3 were empty at the moment)
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/Makefile11
-rw-r--r--mdk-stage1/Makefile.common5
2 files changed, 4 insertions, 12 deletions
diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile
index ce928abed..d370aab4a 100644
--- a/mdk-stage1/Makefile
+++ b/mdk-stage1/Makefile
@@ -108,7 +108,7 @@ ifeq (DIETLIBC, $(L))
STAGE1_NETWORK_LIBS = $(top_dir)/dietlibc/bin-$(ARCH)/librpc.a
else
ifeq (x86_64, $(ARCH))
-STAGE1_NETWORK_LIBS = /usr/lib64/libresolv.a
+STAGE1_NETWORK_LIBS = /usr/$(LIB)/libresolv.a
else
STAGE1_NETWORK_LIBS = /usr/lib/libresolv.a
endif
@@ -143,15 +143,12 @@ ifeq (i386, $(ARCH))
LDFLAGS_INIT = -static -nostdlib /usr/lib/crt1.o
else
ifeq (x86_64, $(ARCH))
-LDFLAGS_INIT = -static -nostdlib /usr/lib64/crt1.o
-INIT_LIBC = $(GLIBC_LIBC)
+LDFLAGS_INIT = -static -nostdlib /usr/$(LIB)/crt1.o
else
ifeq (ia64, $(ARCH))
LDFLAGS_INIT = $(GLIBC_LDFLAGS_STAGE1)
-INIT_LIBC = $(GLIBC_LIBC)
else
LDFLAGS_INIT = $(DIETLIBC_LDFLAGS_STAGE1)
-INIT_LIBC = $(DIETLIBC_LIBC)
endif
endif
endif
@@ -198,11 +195,11 @@ dirs:
[ "$$n" = "." ] || make -C $$n || exit 1 ;\
done
-init: $(INITOBJS) $(INIT_LIBC)
+init: $(INITOBJS)
$(CC) $(LDFLAGS_INIT) -o $@ $^
$(STRIPCMD) $@
-init-stage2: $(INITOBJS-STAGE2) $(INIT_LIBC)
+init-stage2: $(INITOBJS-STAGE2)
$(CC) $(LDFLAGS_INIT) -o $@ $^
$(STRIPCMD) $@
diff --git a/mdk-stage1/Makefile.common b/mdk-stage1/Makefile.common
index ec7066a06..56494bb5e 100644
--- a/mdk-stage1/Makefile.common
+++ b/mdk-stage1/Makefile.common
@@ -29,9 +29,6 @@ F = NEWT
ifeq (ia64, $(ARCH))
L = GLIBC
endif
-ifeq (ppc, $(ARCH))
-L = GLIBC
-endif
ifeq (x86_64, $(ARCH))
#L = GLIBC
endif
@@ -56,8 +53,6 @@ GLIBC_LDFLAGS_STAGE1 = -static
DIETLIBC_LDFLAGS_STAGE1 = -nostdlib
LDFLAGS_STAGE1 = $($(L)_LDFLAGS_STAGE1)
-GLIBC_LIBC =
-DIETLIBC_LIBC =
STAGE1_LIBC = $($(L)_LIBC)
STRIPCMD = strip -R .note -R .comment