X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=Makefile.build.inc;h=010bcf578a4b80307a2cb0ec05b6766be1d05827;hp=fc4c471441cc4c6a53dcbcde353f6a15dcd9fb1c;hb=3644b3ee9ca6a858cf733579012ef595d652dcdf;hpb=317f9f21987c107985366fa06d7f649b7767163e diff --git a/Makefile.build.inc b/Makefile.build.inc index fc4c471..010bcf5 100644 --- a/Makefile.build.inc +++ b/Makefile.build.inc @@ -1,7 +1,14 @@ -CFLAGS=-Wall -O2 -g -I. -#debug -#CFLAGS=-Wall -g +CFLAGS=-Wall -I. + +#optimized +CFLAGS+=-O2 + +#debug information +CFLAGS+=-g + +#RCU debug (slower, with error-checks) +#CFLAGS+=-DDEBUG_RCU LDFLAGS=-lpthread @@ -22,6 +29,9 @@ endif ifeq ("${HOSTTYPE}","ppc64") ARCHTYPE=ppc endif +ifeq ("${HOSTTYPE}","ppc") +ARCHTYPE=ppc +endif ifeq ("${HOSTTYPE}","s390") ARCHTYPE=s390 endif @@ -29,9 +39,6 @@ ifeq ("${HOSTTYPE}","s390x") ARCHTYPE=s390 endif -#Build the library without using signals. Slower read-side. -#CFLAGS+=-DCONFIG_URCU_AVOID_SIGNALS - #Changing the signal number used by the library. SIGUSR1 by default. #CFLAGS+=-DSIGURCU=SIGUSR2