]> git.pond.sub.org Git - empserver/blobdiff - GNUmakefile.in
Fix autoconfiguration of libraries
[empserver] / GNUmakefile.in
index 6c58ab9e478e2f60a7be3903f8d73ce8fa459f47..f7a4c9e6330affc8d0903ac52c40866fdf6a0cbf 100644 (file)
@@ -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