mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-08-20 17:34:25 -05:00
Compare commits
3 Commits
devkitA64_
...
devkitPPC_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb428eb450 | ||
|
|
032100b82e | ||
|
|
d051cd518b |
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#---------------------------------------------------------------------------------
|
||||
# devkitARM release 62
|
||||
# devkitPPC release 43
|
||||
# devkitPPC release 44.2
|
||||
# devkitA64 release 23
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
@@ -27,12 +27,12 @@ echo
|
||||
|
||||
|
||||
|
||||
DKARM_RULES_VER=1.3.0
|
||||
DKARM_CRTLS_VER=1.2.1
|
||||
DKARM_RULES_VER=1.5.0
|
||||
DKARM_CRTLS_VER=1.2.2
|
||||
|
||||
DKPPC_RULES_VER=1.1.2
|
||||
DKPPC_RULES_VER=1.2.1
|
||||
|
||||
DKA64_RULES_VER=1.0.1
|
||||
DKA64_RULES_VER=1.1.1
|
||||
|
||||
OSXMIN=${OSXMIN:-10.9}
|
||||
|
||||
|
||||
@@ -10065,6 +10065,45 @@ index df966f929..106d99e94 100644
|
||||
#include <_ansi.h>
|
||||
#include <reent.h>
|
||||
#include <newlib.h>
|
||||
diff --git a/newlib/libc/stdlib/__call_atexit.c b/newlib/libc/stdlib/__call_atexit.c
|
||||
index 710440389..985e720bf 100644
|
||||
--- a/newlib/libc/stdlib/__call_atexit.c
|
||||
+++ b/newlib/libc/stdlib/__call_atexit.c
|
||||
@@ -21,6 +21,7 @@ struct _atexit *__atexit = _NULL;
|
||||
|
||||
#ifdef _WANT_REGISTER_FINI
|
||||
|
||||
+#if 0
|
||||
/* If "__libc_fini" is defined, finalizers (either
|
||||
"__libc_fini_array", or "_fini", as appropriate) will be run after
|
||||
all user-specified atexit handlers. For example, you can define
|
||||
@@ -36,6 +37,7 @@ struct _atexit *__atexit = _NULL;
|
||||
used with multiple BSPs, some of which register finalizers from
|
||||
startup code, while others defer to the C library. */
|
||||
extern char __libc_fini __attribute__((weak));
|
||||
+#endif
|
||||
|
||||
/* Register the application finalization function with atexit. These
|
||||
finalizers should run last. Therefore, we want to call atexit as
|
||||
@@ -46,6 +48,7 @@ register_fini(void) __attribute__((constructor (0)));
|
||||
static void
|
||||
register_fini(void)
|
||||
{
|
||||
+#if 0
|
||||
if (&__libc_fini) {
|
||||
#ifdef _HAVE_INITFINI_ARRAY
|
||||
extern void __libc_fini_array (void);
|
||||
@@ -55,6 +58,10 @@ register_fini(void)
|
||||
atexit (_fini);
|
||||
#endif
|
||||
}
|
||||
+#else
|
||||
+ extern void __fini (void);
|
||||
+ atexit (__fini);
|
||||
+#endif
|
||||
}
|
||||
|
||||
#endif /* _WANT_REGISTER_FINI */
|
||||
diff --git a/newlib/libc/stdlib/mlock.c b/newlib/libc/stdlib/mlock.c
|
||||
index 23aa10173..ba88eb9fb 100644
|
||||
--- a/newlib/libc/stdlib/mlock.c
|
||||
|
||||
@@ -101,7 +101,7 @@ then
|
||||
--with-newlib \
|
||||
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
|
||||
--prefix=$prefix \
|
||||
--with-bugurl="https://github.com/devkitpro/buildscripts/issues" --with-pkgversion="devkitPPC release 44" \
|
||||
--with-bugurl="https://github.com/devkitpro/buildscripts/issues" --with-pkgversion="devkitPPC release 44.2" \
|
||||
$CROSS_PARAMS \
|
||||
$CROSS_GCC_PARAMS \
|
||||
$EXTRA_GCC_PARAMS \
|
||||
@@ -144,6 +144,7 @@ then
|
||||
--target=$target \
|
||||
--prefix=$prefix \
|
||||
--enable-newlib-mb \
|
||||
--enable-newlib-register-fini \
|
||||
|| { echo "Error configuring newlib"; exit 1; }
|
||||
touch configured-newlib
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user