From d8f0f146b8befe92d951c5e5907d41e23f376679 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 23 Jan 2003 21:14:56 +0000 Subject: [PATCH] * Makeifle.in: Use ALL_CFLAGS to build test programs so that correct libraries and other options are used. --- winsup/testsuite/ChangeLog | 5 +++++ winsup/testsuite/Makefile.in | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/winsup/testsuite/ChangeLog b/winsup/testsuite/ChangeLog index 210f06fd8..1260049de 100644 --- a/winsup/testsuite/ChangeLog +++ b/winsup/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-01-23 Christopher Faylor + + * Makeifle.in: Use ALL_CFLAGS to build test programs so that correct + libraries and other options are used. + 2003-01-22 Corinna Vinschen * cygrun.c: Move here from ../cygwin. diff --git a/winsup/testsuite/Makefile.in b/winsup/testsuite/Makefile.in index 9d48e1faa..863fe67f9 100644 --- a/winsup/testsuite/Makefile.in +++ b/winsup/testsuite/Makefile.in @@ -57,6 +57,7 @@ else CFLAGS:=@CFLAGS@ -MD $(TESTSUP_INCLUDES) endif CXXFLAGS:=@CXXFLAGS@ +export ALL_CFLAGS AR:=@AR@ AR_FLAGS:=qv @@ -152,7 +153,7 @@ site.exp: ./config.status Makefile @echo "set target_alias $(target_alias)" >> ./tmp0 @echo "set CC \"$(CC)\"" >> ./tmp0 # CFLAGS is set even though it's empty to show we reserve the right to set it. - @echo "set CFLAGS \"\"" >> ./tmp0 + @echo "set CFLAGS \"$(ALL_CFLAGS)\"" >> ./tmp0 echo "set tmpdir $(objdir)/testsuite" >> ./tmp0 @echo "set ltp_includes \"$(libltp_srcdir)/include\"" >> ./tmp0 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0