浏览代码

When compiling with -O0, linuxthreads does not compile. So add
a local override changing -O0 to -O1 only for that directory.

Eric Andersen 22 年之前
父节点
当前提交
4d52b7849a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      libpthread/linuxthreads/Makefile

+ 2 - 0
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/