Explorar el Código

Lose the -nostdlib, which causes problems with older binutils, and
add some fflush calls, since it seems streams are not flushed before
an exec

Eric Andersen hace 22 años
padre
commit
85af153d3b
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 1
      extra/gcc-uClibc/Makefile
  2. 1 0
      extra/gcc-uClibc/gcc-uClibc.c

+ 1 - 1
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
 

+ 1 - 0
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);