Fix autoconfiguration of libraries
configure checked for library functions with LIBS instead of
LIBS_server, which could break detection of getaddrinfo() on systems
where LIB_SOCKET isn't empty.
GNUmakefile put @PTHREAD_LIBS@ only in LDLIBS, which breaks linking of
server and possibly client on systems where it is not empty.
Broken in commit 8b778634
.
This commit is contained in:
parent
a977bd08f6
commit
70a9a44bbc
2 changed files with 9 additions and 11 deletions
|
@ -43,9 +43,7 @@ CFLAGS := @CFLAGS@
|
|||
CPPFLAGS := @CPPFLAGS@ @DEFS@
|
||||
LDFLAGS := @LDFLAGS@
|
||||
LIBOBJS := @LIBOBJS@
|
||||
LDLIBS := @LIBS@ -lm
|
||||
LIBS_client := @LIBS_client@ -lm
|
||||
LIBS_server := @LIBS_server@ -lm
|
||||
LDLIBS := -lm
|
||||
empthread := @empthread@
|
||||
ifeq ($(empthread),POSIX)
|
||||
CC := @PTHREAD_CC@
|
||||
|
@ -56,6 +54,9 @@ endif
|
|||
ifeq ($(empthread),Windows)
|
||||
CFLAGS := $(CFLAGS) -mthreads
|
||||
endif
|
||||
LIBS_client := @LIBS_client@ $(LDLIBS)
|
||||
LIBS_server := @LIBS_server@ $(LDLIBS)
|
||||
LDLIBS := @LIBS@ $(LDLIBS)
|
||||
CCDEPMODE := @CCDEPMODE@
|
||||
@am__fastdepCC_TRUE@how_to_dep := fast
|
||||
@am__fastdepCC_FALSE@@AMDEP_TRUE@how_to_dep := depcomp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue