[uClibc]cvs commit to uClibc/unistd by davidm
Manuel Novoa III
mnovoa3 at bellsouth.net
Mon Jan 29 19:45:36 UTC 2001
David,
I know I was abusing the make system, and I can see now that the original
Makefile might break if you did a make -j, but let me explain what I was trying
to do here. Assume you are cross-compiling.
In the original Makefile, if sysconf_$(TARGET_ARCH).c is newer than sysconf.c,
it will be used. If it is older, then for the original Makefile you would get a
warning message, sysconf_$(TARGET_ARCH).c would not be changed, sysconf.c gets
copied to sysconf_src.c, and everything (should -- I couldn't test the
cross-compiling case) work. Subsequent makes will continue to output the
warning message.
With you change, sysconf.c gets copied over sysconf_$(TARGET_ARCH).c on the
first make (if it is newer). But now on subsequent makes, you don't see a
warning message and you may not think to rebuild sysconf_$(TARGET_ARCH).c.
Did this actually not build for you?
Manuel
On Mon, 29 Jan 2001, davidm at uclinux.org wrote:
> Repository: uClibc/unistd
> who: davidm
> time: Mon Jan 29 10:51:44 EST 2001
>
> Log Message:
>
> The rules to build sysconf_$(TARGET_ARCH).c were broken when cross
> compiling.
>
>
> Files:
> changed: Makefile
More information about the uClibc
mailing list