mirror of
https://kernel.googlesource.com/pub/scm/network/tftp/tftp-hpa
synced 2025-04-27 18:39:53 +03:00
Don't build empty libxtra; Solaris can't build an empty archive
This commit is contained in:
parent
d1f0406637
commit
547d611d53
2 changed files with 12 additions and 4 deletions
12
configure.in
12
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
|
||||
|
|
|
@ -7,7 +7,11 @@ SRCROOT = ..
|
|||
-include ../MCONFIG
|
||||
include ../MRULES
|
||||
|
||||
ifeq ($(LIBOBJS),)
|
||||
all:
|
||||
else
|
||||
all: libxtra.a
|
||||
endif
|
||||
|
||||
install:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue