summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/Makefile
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-01 17:25:22 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-01 17:25:22 +0000
commit8ac9c1cf02a99522e16d1f5c1ee58b6e60155e52 (patch)
treeaa04026f1b22781d668ed02d04688e1f48cd008c /mdk-stage1/Makefile
parent45628778c1938564a7843a2a5e314a4c220c24f0 (diff)
downloaddrakx-backup-do-not-use-8ac9c1cf02a99522e16d1f5c1ee58b6e60155e52.tar
drakx-backup-do-not-use-8ac9c1cf02a99522e16d1f5c1ee58b6e60155e52.tar.gz
drakx-backup-do-not-use-8ac9c1cf02a99522e16d1f5c1ee58b6e60155e52.tar.bz2
drakx-backup-do-not-use-8ac9c1cf02a99522e16d1f5c1ee58b6e60155e52.tar.xz
drakx-backup-do-not-use-8ac9c1cf02a99522e16d1f5c1ee58b6e60155e52.zip
link against system libraries for newt & slang too (from mdv)
Diffstat (limited to 'mdk-stage1/Makefile')
-rw-r--r--mdk-stage1/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile
index 586596bb4..a4ef5d428 100644
--- a/mdk-stage1/Makefile
+++ b/mdk-stage1/Makefile
@@ -70,16 +70,19 @@ INITOBJS = $(subst .c,.o,$(INITSRC))
#- frontends
NEWT_FRONTEND_SRC = newt-frontend.c
-NEWT_FRONTEND_LIBS = newt/libnewt.a slang/libslang.a
+NEWT_FRONTEND_LIBS = libnewt.a libslang.a
STDIO_FRONTEND_SRC = stdio-frontend.c
STDIO_FRONTEND_LIBS =
STDIO_FRONTEND_LIBS =
-
FRONTEND_OBJS = $(subst .c,.o,$($(F)_FRONTEND_SRC))
+ifeq (DIETLIBC, $(L))
+FRONTEND_LINK = $(FRONTEND_OBJS) $(patsubst %,/usr/lib/dietlibc/lib-$(ARCH)/%,$($(F)_FRONTEND_LIBS))
+else
FRONTEND_LINK = $(FRONTEND_OBJS) $($(F)_FRONTEND_LIBS)
+endif
STAGE1_STATIC_LIBS =
STAGE1_STATIC_USR_LIBS = libz.a libldetect.a libkmod.a libpci.a liblzma.a libsysfs.a
@@ -127,7 +130,7 @@ STAGE1OBJS-FULL = $(subst .c,-FULL.o,$(STAGE1_ALLSRC))
BINS = init stage1 dhcp-client rescue-gui probe-modules
-DIRS += pci-resource usb-resource slang newt
+DIRS += pci-resource usb-resource
ifeq (i386, $(ARCH))
DIRS += pcmcia pcmcia-resource
endif