diff options
author | Roy Marples <roy@marples.name> | 2008-01-04 14:01:24 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-04 14:01:24 +0000 |
commit | 633297a6ca01df281c293cb484d3f377d90af1b3 (patch) | |
tree | bdf3d005334e7dfc02d36a4d00637aebdb7962a4 | |
parent | 3be23bc02d30bc415e5ae3f1bc167280d9fde26e (diff) |
Support static building against a non static PAM.
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | src/Makefile | 6 | ||||
-rw-r--r-- | src/Makefile.pam-dynamic | 2 |
3 files changed, 9 insertions, 3 deletions
@@ -12,9 +12,13 @@ BIN_LDFLAGS=-static LIB=lib64 DESTDIR=/tmp/openrc-image PAM=pam +PAM=pam-dynamic TERMCAP=ncurses TERMCAP=termcap +If you want to build static binaries and use PAM and your PAM implementation +does not have a static pam library and you should use PAM=pam-dynamic. + You can also brand OpenRC if you so wish like so BRANDING=\"Gentoo/$(uname -s)\" diff --git a/src/Makefile b/src/Makefile index c24e75ee..a0d3d67c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -110,7 +110,7 @@ $(LIBEINFOSO): einfo.map $(LIBEINFOOBJS) $(CC) $(LDFLAGS) -fPIC -shared \ -Wl,-soname,$(LIBEINFOSO) \ -Wl,-version-script einfo.map \ - -o $(LIBEINFOSO) $(LIBEINFOOBJS) $(LDLIBS) $(LDLIBS_LIBEINFO) + -o $(LIBEINFOSO) $(LIBEINFOOBJS) $(LDLIBS_LIBEINFO) ln -sf $(LIBEINFOSO) libeinfo.so ar rc libeinfo.a $(LIBEINFOOBJS) ranlib libeinfo.a @@ -121,7 +121,7 @@ $(LIBRCSO): rc.map $(LIBRCOBJS) $(CC) $(LDFLAGS) -fPIC -shared \ -Wl,-soname,$(LIBRCSO) \ -Wl,-version-script rc.map \ - -o $(LIBRCSO) $(LIBRCOBJS) $(LDLIBS) $(LDLIBS_LIBRC) + -o $(LIBRCSO) $(LIBRCOBJS) $(LDLIBS_LIBRC) ln -sf $(LIBRCSO) librc.so ar rc librc.a $(LIBRCOBJS) ranlib librc.a @@ -130,7 +130,7 @@ $(RCOBJS): $(CC) $(CPPFLAGS) $(CPPFLAGS_SSD) $(CFLAGS) -c $< rc: version.h $(LIBEINFOSO) $(LIBRCSO) $(RCOBJS) $(CC) $(LDFLAGS) $(BIN_LDFLAGS) -o rc \ - $(RCOBJS) $(LDLIBS) $(LDLIBS_RC) $(LDLIBS_LIBEINFO) $(LDLIBS_LIBRC) + $(RCOBJS) $(LDLIBS_LIBEINFO) $(LDLIBS_LIBRC) $(LDLIBS_RC) $(ALL_LINKS): rc ln -sf rc $@ diff --git a/src/Makefile.pam-dynamic b/src/Makefile.pam-dynamic new file mode 100644 index 00000000..7393939a --- /dev/null +++ b/src/Makefile.pam-dynamic @@ -0,0 +1,2 @@ +CPPFLAGS_SSD = -DHAVE_PAM +LDLIBS_RC += -Wl,-Bdynamic -lpam |