summaryrefslogtreecommitdiffstats
path: root/loader2/Makefile
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2006-06-20 14:54:59 +0000
committerDavid Cantrell <dcantrell@redhat.com>2006-06-20 14:54:59 +0000
commit8cae55768ad359977d9a27f97d81ba99f45ded73 (patch)
tree530bcefb9ad34b302468103296a9cba0b3a27364 /loader2/Makefile
parent01f44fee5c8a794b4da524f21cbe59017f154278 (diff)
downloadanaconda-8cae55768ad359977d9a27f97d81ba99f45ded73.tar.gz
anaconda-8cae55768ad359977d9a27f97d81ba99f45ded73.tar.xz
anaconda-8cae55768ad359977d9a27f97d81ba99f45ded73.zip
* loader2/Makefile: Cram a new linker path in to loader so that we can
find libnss_* stuff in stage1. * scripts/mk-images (makeinitrd): Copy in libnss_dns* and libnss_files* to the stage1 image.
Diffstat (limited to 'loader2/Makefile')
-rw-r--r--loader2/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/loader2/Makefile b/loader2/Makefile
index 973282174..03489786d 100644
--- a/loader2/Makefile
+++ b/loader2/Makefile
@@ -45,6 +45,9 @@ else
HWLIBS += -lpci
endif
+# NSS linker flags
+NSSFLAGS = -Wl,-rpath-link,/nss
+
CFLAGS += -DUSE_LOGDEV -DVERSION='"$(VERSION)"'
STATIC = -static
REALCC=gcc
@@ -124,7 +127,7 @@ loader-net.o: loader.c
$(CC) -DINCLUDE_NETWORK $(CFLAGS) -o $@ -c $<
loader: loader.o $(OBJS) $(NETOBJS)
- $(CC) -g $(STATIC) -o $@ $^ -lpopt \
+ $(CC) -g $(STATIC) $(NSSFLAGS) -o $@ $^ -lpopt \
$(HWLIBS) $(ISYSLIB) $(GUNZIP) $(UNICODELIB) \
-lresolv $(NEWTLIB) $(SLANGLIB) $(DMLIB) $(GLIB) $(DHCP) -lm