Explorar o código

here is (I hope) a better way to handle this one. I regularly build
debug versions of uClibc with -O0, but libpthread/linuxthreads/spinlock.c
will not compile without at least -O1 optimization...

Eric Andersen %!s(int64=21) %!d(string=hai) anos
pai
achega
e71b7cc95c
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      libpthread/linuxthreads/Makefile

+ 2 - 1
libpthread/linuxthreads/Makefile

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