mirror of
https://kernel.googlesource.com/pub/scm/network/tftp/tftp-hpa
synced 2025-04-28 02:49: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`
|
SRCROOT=`cd $srcdir && pwd`
|
||||||
OBJROOT=`pwd`
|
OBJROOT=`pwd`
|
||||||
|
|
||||||
AC_SEARCH_LIBS(xmalloc, iberty, , [AC_LIBOBJ(xmalloc)])
|
XTRA=false
|
||||||
AC_SEARCH_LIBS(xstrdup, iberty, , [AC_LIBOBJ(xstrdup)])
|
AC_SEARCH_LIBS(xmalloc, iberty, , [XTRA=true ; AC_LIBOBJ(xmalloc)])
|
||||||
AC_SEARCH_LIBS(bsd_signal, bsd, , [AC_LIBOBJ(bsdsignal)])
|
AC_SEARCH_LIBS(xstrdup, iberty, , [XTRA=true ; AC_LIBOBJ(xstrdup)])
|
||||||
XTRALIBS="$OBJROOT/lib/libxtra.a $XTRALIBS"
|
AC_SEARCH_LIBS(bsd_signal, bsd, , [XTRA=true ; AC_LIBOBJ(bsdsignal)])
|
||||||
|
if $XTRA
|
||||||
|
then
|
||||||
|
XTRALIBS="$OBJROOT/lib/libxtra.a $XTRALIBS"
|
||||||
|
fi
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl These libraries apply to the server only
|
dnl These libraries apply to the server only
|
||||||
|
|
|
@ -7,7 +7,11 @@ SRCROOT = ..
|
||||||
-include ../MCONFIG
|
-include ../MCONFIG
|
||||||
include ../MRULES
|
include ../MRULES
|
||||||
|
|
||||||
|
ifeq ($(LIBOBJS),)
|
||||||
|
all:
|
||||||
|
else
|
||||||
all: libxtra.a
|
all: libxtra.a
|
||||||
|
endif
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue