mirror of
https://github.com/xomboverlord/buildtools.git
synced 2026-01-11 18:33:17 +01:00
fixup for drt based crt, also, use hardware fp for math functions
This commit is contained in:
2
build.sh
2
build.sh
@@ -132,7 +132,7 @@ cd ../../../../..
|
||||
|
||||
echo "CONFIGURE NEWLIB"
|
||||
cd newlib-obj
|
||||
../newlib-${NEWLIB_VER}/configure --target=$TARGET --prefix=$PREFIX --with-gmp=$PREFIX --with-mpfr=$PREFIX || exit
|
||||
../newlib-${NEWLIB_VER}/configure --target=$TARGET --prefix=$PREFIX --with-gmp=$PREFIX --with-mpfr=$PREFIX -enable-newlib-hw-fp || exit
|
||||
|
||||
echo "COMPILE NEWLIB"
|
||||
make || exit
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
|
||||
extern int main(); //int argc, char **argv, char **environ);
|
||||
|
||||
extern void initC2D();
|
||||
|
||||
|
||||
int _Dmain(){
|
||||
initC2D();
|
||||
|
||||
return main();
|
||||
}
|
||||
|
||||
@@ -107,8 +107,6 @@ open(const char *name, int flags, ...) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
printf("new fd assigned: %d\n", fd);
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user