build: don't build libhostname unless shared libcurl is built

This commit is contained in:
Yang Tse
2010-08-09 09:33:53 +02:00
parent 50a1d5ee1c
commit b24e872502
2 changed files with 11 additions and 0 deletions

View File

@@ -64,7 +64,11 @@ include Makefile.inc
# Preloading of libhostname allows host name overriding,
# this is used to make some tests machine independent.
if BUILD_LIBHOSTNAME
noinst_LTLIBRARIES = libhostname.la
else
noinst_LTLIBRARIES =
endif
if NO_UNDEFINED
# The -no-undefined flag is crucial to build fine on some platforms