diff options
author | Peter Anvin <hpa@tazenda.sc.orionmulti.com> | 2005-09-26 10:47:27 -0700 |
---|---|---|
committer | Peter Anvin <hpa@tazenda.sc.orionmulti.com> | 2005-09-26 10:47:27 -0700 |
commit | 547d611d537134f479e5e3ccfe3cc7cf86c595db (patch) | |
tree | 4ac9f97c6d261469c9973b8f89ac785563c1825e | |
parent | d1f0406637db0aa1a5441ef297e3d41e812b5c7f (diff) | |
download | tftp-hpa-547d611d537134f479e5e3ccfe3cc7cf86c595db.tar.gz |
Don't build empty libxtra; Solaris can't build an empty archive
-rw-r--r-- | configure.in | 12 | ||||
-rw-r--r-- | lib/Makefile | 4 |
2 files changed, 12 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 117006c..5166ca4 100644 --- a/configure.in +++ b/configure.in @@ -129,10 +129,14 @@ dnl SRCROOT=`cd $srcdir && pwd` OBJROOT=`pwd` -AC_SEARCH_LIBS(xmalloc, iberty, , [AC_LIBOBJ(xmalloc)]) -AC_SEARCH_LIBS(xstrdup, iberty, , [AC_LIBOBJ(xstrdup)]) -AC_SEARCH_LIBS(bsd_signal, bsd, , [AC_LIBOBJ(bsdsignal)]) -XTRALIBS="$OBJROOT/lib/libxtra.a $XTRALIBS" +XTRA=false +AC_SEARCH_LIBS(xmalloc, iberty, , [XTRA=true ; AC_LIBOBJ(xmalloc)]) +AC_SEARCH_LIBS(xstrdup, iberty, , [XTRA=true ; AC_LIBOBJ(xstrdup)]) +AC_SEARCH_LIBS(bsd_signal, bsd, , [XTRA=true ; AC_LIBOBJ(bsdsignal)]) +if $XTRA +then + XTRALIBS="$OBJROOT/lib/libxtra.a $XTRALIBS" +fi dnl dnl These libraries apply to the server only diff --git a/lib/Makefile b/lib/Makefile index 615a3fa..a43ce19 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -7,7 +7,11 @@ SRCROOT = .. -include ../MCONFIG include ../MRULES +ifeq ($(LIBOBJS),) +all: +else all: libxtra.a +endif install: |