[klibc] [PATCH] klcc on multiple files

H. Peter Anvin hpa at zytor.com
Thu May 26 21:25:45 PDT 2005

Daniel Thaler wrote:

> First the real-life example (from the Makefile of iptables 1.3.1):
> ./Makefile:60:  32bituser := $(shell echo -e "\#include <stdio.h>\n\#if
> !defined(__sparcv9) && !defined(__arch64__) &&
> !defined(_LP64)\nuserspace_is_32bit\n\#endif" | $(CC) $(CFLAGS) -E - |
> grep userspace_is_32bit)
> The fix to Erik's problem is to dup STDIN (patch attached), because open3
> only insists on closing STDIN, but not other random filehandles.
> However you said "various problems", so what else did I break :( ?

There were two reports on the mailing list of breakage, might be the 
same problem for all I know.  I'll test out your patch.


More information about the klibc mailing list