소스 검색

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/