Преглед на файлове

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

Eric Andersen преди 21 години
родител
ревизия
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/