Support static building against a non static PAM.
This commit is contained in:
parent
3be23bc02d
commit
633297a6ca
4
README
4
README
@ -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)\"
|
||||
|
||||
|
@ -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 $@
|
||||
|
2
src/Makefile.pam-dynamic
Normal file
2
src/Makefile.pam-dynamic
Normal file
@ -0,0 +1,2 @@
|
||||
CPPFLAGS_SSD = -DHAVE_PAM
|
||||
LDLIBS_RC += -Wl,-Bdynamic -lpam
|
Loading…
Reference in New Issue
Block a user