From d26f88068bd4d5757935ac27893fb572b19e0568 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sat, 7 Jan 2012 03:13:01 +0100 Subject: [PATCH] Add xfreopen.c to the library build, fixes DEBUG build. The actual xfreopen function is only relevant if O_BINARY != 0 and all places invoking it are surrounded by if statements that are always false if O_BINARY == 0. The compiler therefore stripped all the calls out at the default -O2, but this obviously breaks down with DEBUG on. --- src/bin/coreutils/lib/Jamfile | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/coreutils/lib/Jamfile b/src/bin/coreutils/lib/Jamfile index e121489c2e..0c8785cc08 100644 --- a/src/bin/coreutils/lib/Jamfile +++ b/src/bin/coreutils/lib/Jamfile @@ -223,6 +223,7 @@ StaticLibrary libfetish.a : version-etc-fsf.c write-any-file.c xalloc-die.c + xfreopen.c xfts.c xgetcwd.c xgethostname.c