X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=configure.ac;h=7b4600424410b8908f19ba4ee4d39ff7b07e09d4;hp=61a0d7613a9fb887d7bdd998b78f07e00a82c095;hb=fdbddd0b309449efb4db1e70e88bb5c65963b478;hpb=ca5a03db55305c0bf8c2e0571ca46fcccea53512 diff --git a/configure.ac b/configure.ac index 61a0d76..7b46004 100644 --- a/configure.ac +++ b/configure.ac @@ -52,6 +52,7 @@ case $host_cpu in sparc64) ARCHTYPE="sparc64" ;; alpha*) ARCHTYPE="alpha" ;; ia64) ARCHTYPE="gcc" ;; + armv7l) ARCHTYPE="armv7l" ;; *) ARCHTYPE="unknown";; esac @@ -67,6 +68,9 @@ if test "x$ARCHTYPE" != xx86 -a "x$ARCHTYPE" != xppc; then else APISRC=tests/api_$ARCHTYPE.h fi +if test "$ARCHTYPE" == "armv7l"; then + CFLAGS="-mcpu=cortex-a9 -mtune=cortex-a9 -O" +fi AC_SUBST(ARCHTYPE) AC_SUBST(SUBARCHTYPE)