Explorar el Código

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

Eric Andersen hace 22 años
padre
commit
4d52b7849a
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      libpthread/linuxthreads/Makefile

+ 2 - 0
libpthread/linuxthreads/Makefile

@@ -27,6 +27,8 @@ SYSDEPS_DIR:=$(TARGET_ARCH)/sparc32
 else
 else
 SYSDEPS_DIR:=$(TARGET_ARCH)
 SYSDEPS_DIR:=$(TARGET_ARCH)
 endif
 endif
+#This stuff will not compile without at least -O1
+CFLAGS := $(subst -O0,-O1,$(CFLAGS))
 
 
 # set up system dependencies include dirs (NOTE: order matters!)
 # set up system dependencies include dirs (NOTE: order matters!)
 PTDIR = $(TOPDIR)libpthread/linuxthreads/
 PTDIR = $(TOPDIR)libpthread/linuxthreads/