summaryrefslogtreecommitdiff
path: root/libpthread
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-08-29 22:52:20 +0000
committerEric Andersen <andersen@codepoet.org>2003-08-29 22:52:20 +0000
commite71b7cc95c5c77db093a1b91f6009f8d10780942 (patch)
tree09883637f8184635db14604934d37b7012dba7d5 /libpthread
parent9c6f2391ed8dd72d9e13db459d149de7bc707567 (diff)
here is (I hope) a better way to handle this one. I regularly build
debug versions of uClibc with -O0, but libpthread/linuxthreads/spinlock.c will not compile without at least -O1 optimization...
Diffstat (limited to 'libpthread')
-rw-r--r--libpthread/linuxthreads/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpthread/linuxthreads/Makefile b/libpthread/linuxthreads/Makefile
index 880fda291..1a3293266 100644
--- a/libpthread/linuxthreads/Makefile
+++ b/libpthread/linuxthreads/Makefile
@@ -28,7 +28,8 @@ else
SYSDEPS_DIR:=$(TARGET_ARCH)
endif
#This stuff will not compile without at least -O1
-#CFLAGS := $(subst -O0,-O1,$(CFLAGS))
+CFLAGS :=$(CFLAGS:-O0=-O1)
+
# set up system dependencies include dirs (NOTE: order matters!)
PTDIR = $(TOPDIR)libpthread/linuxthreads/