From 59d6feb469bcc257162bac4bd232ef2f5d210a71 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 14 Mar 2008 09:39:58 +0100 Subject: libreplace: fix samba4 build (by not setting global LIBS). This corrects the earlier fix of the standalone build, by setting LIBS to the desired value only in configure.ac but not in getifaddrs.m4. Not that this changes the standalone build in that it adds these libs undconditionally and not only if they are needed by the getifaddrs replacement functions. Michael (cherry picked from commit ff3af1703ddc9e5383f32156bc5be8351f795e76) (This used to be commit 2546da817f666914c1c220ec1fedc19aa41b25ad) --- source3/lib/replace/configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/lib/replace/configure.ac') diff --git a/source3/lib/replace/configure.ac b/source3/lib/replace/configure.ac index f5e054f476..298f5a67f9 100644 --- a/source3/lib/replace/configure.ac +++ b/source3/lib/replace/configure.ac @@ -21,6 +21,9 @@ if test "$ac_cv_prog_gcc" = yes; then CFLAGS="$CFLAGS -Wno-format-y2k" fi +LIBS="$SOCKET_LIBS $NSL_LIBS" +AC_SUBST(LIBS) + AC_SUBST(LDFLAGS) AC_OUTPUT(Makefile) -- cgit