aboutsummaryrefslogtreecommitdiff
path: root/src/config/lib.in
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2004-04-24 04:44:02 +0000
committerKen Raeburn <raeburn@mit.edu>2004-04-24 04:44:02 +0000
commit7ffd3ed39e7bc7f6fe978e3afb29bf5aaf381ee5 (patch)
tree010cd716fd2eb0c286862d3bd511d36dc33933f6 /src/config/lib.in
parent343bb2cb78e331f4ae4b9f022d4968058460ef4e (diff)
downloadkrb5-7ffd3ed39e7bc7f6fe978e3afb29bf5aaf381ee5.zip
krb5-7ffd3ed39e7bc7f6fe978e3afb29bf5aaf381ee5.tar.gz
krb5-7ffd3ed39e7bc7f6fe978e3afb29bf5aaf381ee5.tar.bz2
Start depending on perl for builds
* aclocal.m4 (KRB5_BUILD_LIBRARY_WITH_DEPS): Look for perl. * config/pre.in (PERL): New variable. * config/lib.in (lib$(LIB)$(SHLIBVEXT)): Use one perl invocation rather than n+1 sed invocations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16266 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/config/lib.in')
-rw-r--r--src/config/lib.in9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/config/lib.in b/src/config/lib.in
index 30c0f49..c2fdc9c 100644
--- a/src/config/lib.in
+++ b/src/config/lib.in
@@ -42,12 +42,9 @@ lib$(LIB)$(STLIBEXT): $(STOBJLISTS)
lib$(LIB)$(SHLIBVEXT): $(SHOBJLISTS) $(SHLIB_EXPDEPS) $(SHLIB_EXPORT_FILE_DEP)
$(RM) $@
@echo "building shared $(LIB) library ($(LIBMAJOR).$(LIBMINOR))"
- @dirs=`echo $(SHOBJLISTS) | \
- sed -e 's%/OBJS.SH%%g' -e 's%OBJS.SH%.%'`; \
- objlist=`for d in $$dirs; do \
- sed -e '/^$$/d' -e "s%^%$$d/%" -e "s% % $$d/%g" \
- $$d/OBJS.SH; done` ; \
- set -x ; $(MAKE_SHLIB_COMMAND)
+ @objlist=`set -x && $(PERL) -p -e '$$e=$$ARGV; $$e =~ s/OBJS.SH$$//; s/^/ /; s/ $$//; s/ / $$e/g;' $(SHOBJLISTS)` && \
+ set -x && \
+ $(MAKE_SHLIB_COMMAND)
lib$(LIB)$(SHLIBSEXT): lib$(LIB)$(SHLIBVEXT)
$(RM) $@