summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-06-02 08:16:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:53:10 -0500
commite0f3a383b4aa15980e1b91a9355fd9e802be0c97 (patch)
treed6c888dd3d6325929e84e1f09e63ed241528bdf1 /source4
parentd596200dde861f42cb989158d17abb9b693aae99 (diff)
downloadsamba-e0f3a383b4aa15980e1b91a9355fd9e802be0c97.tar.gz
samba-e0f3a383b4aa15980e1b91a9355fd9e802be0c97.tar.bz2
samba-e0f3a383b4aa15980e1b91a9355fd9e802be0c97.zip
r23306: pass down LDFLAGS to the link command in the libreplace standalone build
metze (This used to be commit 06caaf0d8d86bb05ceaac6624735283b585d995d)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/replace/Makefile.in5
-rw-r--r--source4/lib/replace/configure.ac2
2 files changed, 5 insertions, 2 deletions
diff --git a/source4/lib/replace/Makefile.in b/source4/lib/replace/Makefile.in
index 41454f6ec4..30f39ac6cb 100644
--- a/source4/lib/replace/Makefile.in
+++ b/source4/lib/replace/Makefile.in
@@ -14,6 +14,7 @@ INSTALL = @INSTALL@
.PHONY: test all showflags install installcheck clean distclean realdistclean
CFLAGS=-I. @CFLAGS@
+LDFLAGS=@LDFLAGS@
OBJS = @LIBREPLACEOBJ@
@@ -23,7 +24,7 @@ showflags:
@echo 'libreplace will be compiled with flags:'
@echo ' CC = $(CC)'
@echo ' CFLAGS = $(CFLAGS)'
- @echo ' LIBS = $(LIBS)'
+ @echo ' LDFLAGS= $(LDFLAGS)'
install: all
mkdir -p $(libdir)
@@ -40,7 +41,7 @@ installcheck: install test
TEST_OBJS = test/testsuite.o test/os2_delete.o test/strptime.o
testsuite: libreplace.a $(TEST_OBJS)
- $(CC) -o testsuite $(TEST_OBJS) -L. -lreplace
+ $(CC) -o testsuite $(TEST_OBJS) -L. -lreplace $(LDFLAGS)
.c.o:
@echo Compiling $*.c
diff --git a/source4/lib/replace/configure.ac b/source4/lib/replace/configure.ac
index 48fb7ce259..beeb77e152 100644
--- a/source4/lib/replace/configure.ac
+++ b/source4/lib/replace/configure.ac
@@ -19,4 +19,6 @@ if test "$ac_cv_prog_gcc" = yes; then
CFLAGS="$CFLAGS -Wno-format-y2k"
fi
+AC_SUBST(LDFLAGS)
+
AC_OUTPUT(Makefile)