From e0f3a383b4aa15980e1b91a9355fd9e802be0c97 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 2 Jun 2007 08:16:42 +0000 Subject: r23306: pass down LDFLAGS to the link command in the libreplace standalone build metze (This used to be commit 06caaf0d8d86bb05ceaac6624735283b585d995d) --- source4/lib/replace/Makefile.in | 5 +++-- source4/lib/replace/configure.ac | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'source4') 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) -- cgit