summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rules.mak7
-rw-r--r--libc/stdlib/abort.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index 7191a56b3..ca9305969 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -47,6 +47,9 @@ MALLOC = malloc
# lfs. This surrently does nothing...
DOLFS = false
+# Enable stuff that is broken (to fix it of course....)
+DO_FIXME_STUFF = true
+
# Disable this if your CPU has a memory management unit (MMU)
HAS_MMU = true
@@ -92,6 +95,10 @@ ifneq ($(HAS_FLOATS),true)
CFLAGS += -D__HAS_NO_FLOATS__
endif
+ifneq ($(DO_FIXME_STUFF),true)
+ CFLAGS += -DFIXME
+endif
+
# Use '-ffunction-sections -fdata-sections' and '--gc-sections' if they work
diff --git a/libc/stdlib/abort.c b/libc/stdlib/abort.c
index 11448bfb9..5fb8be599 100644
--- a/libc/stdlib/abort.c
+++ b/libc/stdlib/abort.c
@@ -32,11 +32,13 @@ extern void _exit __P((int __status)) __attribute__ ((__noreturn__));
/* Cause an abnormal program termination with core-dump. */
void abort(void)
{
+#if FIXME
sigset_t sigset;
if (sigemptyset(&sigset) == 0 && sigaddset(&sigset, SIGABRT) == 0) {
sigprocmask(SIG_UNBLOCK, &sigset, (sigset_t *) NULL);
}
+#endif
if (__cleanup)
__cleanup();