aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-11 22:06:27 +0000
committerRoy Marples <roy@marples.name>2007-09-11 22:06:27 +0000
commita5585487aa5c85fac1ffabc194063f46add90d69 (patch)
tree671b674f916d3aa085c284808d84afd302cf62ff /src
parent607f2b37b118d83d63990f8b37da63e3ca0bcd08 (diff)
More --as-needed foo
Diffstat (limited to 'src')
-rw-r--r--src/Makefile7
-rw-r--r--src/Makefile.BSD1
2 files changed, 5 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index b2ede0db..93e71d26 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -48,6 +48,7 @@ PAM =
LIBEINFOSOVER = 0
LIBEINFOSO = libeinfo.so.$(LIBRCSOVER)
LIBEINFOOBJS= libeinfo.o
+LDLIBS_LIBEINFO = $(LDLIBS)
LIBRCSOVER = 0
LIBRCSO = librc.so.$(LIBRCSOVER)
@@ -105,19 +106,19 @@ all: .depend $(TARGET)
$(LIBEINFOOBJS):
$(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c $<
$(LIBEINFOSO): $(LIBEINFOOBJS)
- $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname,$(LIBEINFOSO) -o $(LIBEINFOSO) $(LIBEINFOOBJS)
+ $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname,$(LIBEINFOSO) -o $(LIBEINFOSO) $(LIBEINFOOBJS) $(LDLIBS) $(LDLIBS_LIBEINFO)
ln -sf $(LIBEINFOSO) libeinfo.so
$(LIBRCOBJS):
$(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c $<
$(LIBRCSO): $(LIBRCOBJS) $(LIBEINFOSO)
- $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname,$(LIBRCSO) -o $(LIBRCSO) $(LIBRCOBJS) $(LDLIBS_LIBRC)
+ $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname,$(LIBRCSO) -o $(LIBRCSO) $(LIBRCOBJS) $(LDLIBS) $(LDLIBS_LIBRC)
ln -sf $(LIBRCSO) librc.so
$(RCOBJS):
$(CC) $(CPPFLAGS) $(CPPFLAGS_SSD) $(CFLAGS) -c $<
rc: $(LIBEINFOSO) $(LIBRCSO) $(RCOBJS)
- $(CC) $(LDFLAGS) -o rc $(RCOBJS) $(LDLIBS_RC)
+ $(CC) $(LDFLAGS) -o rc $(RCOBJS) $(LDLIBS) $(LDLIBS_RC)
links: rc
for x in $(BINLINKS) $(SBINLINKS) $(RCLINKS) $(RCPRIVLINKS); do ln -sf rc $$x; done
diff --git a/src/Makefile.BSD b/src/Makefile.BSD
index ab5cec7c..af581e4b 100644
--- a/src/Makefile.BSD
+++ b/src/Makefile.BSD
@@ -1 +1,2 @@
+LDLIBS += -lc
LDLIBS_LIBRC += -lkvm