summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-06-17 19:03:39 +0000
committerEric Andersen <andersen@codepoet.org>2003-06-17 19:03:39 +0000
commit4d52b7849a2b335ea2eb76ff8a3dba48291c2235 (patch)
tree79022c7a73eea3c4dd9db3085356ca880f2709a1 /libpthread/linuxthreads
parent5cff1f8b6be0c32e41833c6709c0599dcebbb5ab (diff)
When compiling with -O0, linuxthreads does not compile. So add
a local override changing -O0 to -O1 only for that directory.
Diffstat (limited to 'libpthread/linuxthreads')
-rw-r--r--libpthread/linuxthreads/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpthread/linuxthreads/Makefile b/libpthread/linuxthreads/Makefile
index 38d0fc5c8..3a868095e 100644
--- a/libpthread/linuxthreads/Makefile
+++ b/libpthread/linuxthreads/Makefile
@@ -27,6 +27,8 @@ SYSDEPS_DIR:=$(TARGET_ARCH)/sparc32
else
SYSDEPS_DIR:=$(TARGET_ARCH)
endif
+#This stuff will not compile without at least -O1
+CFLAGS := $(subst -O0,-O1,$(CFLAGS))
# set up system dependencies include dirs (NOTE: order matters!)
PTDIR = $(TOPDIR)libpthread/linuxthreads/