diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-02-27 08:53:50 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-02-27 08:53:50 +0000 |
commit | 85af153d3b11849d1fd4df966046d8cea0b30187 (patch) | |
tree | cd44dc861f053728a5fd272236049f7992d4a3be /extra | |
parent | 1b9daa113dde2db5b2a3bb29cabf1168fa2297dc (diff) |
Lose the -nostdlib, which causes problems with older binutils, and
add some fflush calls, since it seems streams are not flushed before
an exec
Diffstat (limited to 'extra')
-rw-r--r-- | extra/gcc-uClibc/Makefile | 2 | ||||
-rw-r--r-- | extra/gcc-uClibc/gcc-uClibc.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/extra/gcc-uClibc/Makefile b/extra/gcc-uClibc/Makefile index 0ef7ab70e..9ab027f82 100644 --- a/extra/gcc-uClibc/Makefile +++ b/extra/gcc-uClibc/Makefile @@ -35,7 +35,7 @@ gcc-uClibc: gcc-uClibc.h gcc-uClibc.c ld-uClibc: @echo "#!/bin/sh" > $(TARGET_ARCH)-uclibc-ld @echo "# This file was autogenerated by make" >> $(TARGET_ARCH)-uclibc-ld - @echo "$(LD_BIN) -nostdlib -L$(DEVEL_PREFIX)/usr/lib -L$(DEVEL_PREFIX)/lib "\ + @echo "$(LD_BIN) -L$(DEVEL_PREFIX)/usr/lib -L$(DEVEL_PREFIX)/lib "\ "-L$(UCLIBC_DIR) \$$@" >> $(TARGET_ARCH)-uclibc-ld chmod a+x $(TARGET_ARCH)-uclibc-ld diff --git a/extra/gcc-uClibc/gcc-uClibc.c b/extra/gcc-uClibc/gcc-uClibc.c index 48340472b..9c888055e 100644 --- a/extra/gcc-uClibc/gcc-uClibc.c +++ b/extra/gcc-uClibc/gcc-uClibc.c @@ -380,6 +380,7 @@ int main(int argc, char **argv) for ( j = 0 ; gcc_argv[j] ; j++ ) { printf("arg[%2i] = %s\n", j, gcc_argv[j]); } + fflush(stdout); } //no need to free memory from xstrcat because we never return... return execvp(GCC_BIN, gcc_argv); |