Don't build empty libxtra; Solaris can't build an empty archive

This commit is contained in:
Peter Anvin 2005-09-26 10:47:27 -07:00
parent d1f0406637
commit 547d611d53
2 changed files with 12 additions and 4 deletions

View file

@ -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

View file

@ -7,7 +7,11 @@ SRCROOT = ..
-include ../MCONFIG
include ../MRULES
ifeq ($(LIBOBJS),)
all:
else
all: libxtra.a
endif
install: