]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: fix expression again to detect ARM platform
authorWilly Tarreau <w@1wt.eu>
Wed, 18 Mar 2020 07:20:45 +0000 (08:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 18 Mar 2020 07:21:57 +0000 (08:21 +0100)
I messed up the fix in 67b095e ("BUILD: makefile: fix regex syntax in
ARM platform detection"), I tried it by hand in the shell without "-v"
but left it in the expression. It works on ARM because it only finds
lines starting with '#' but on other platforms it insists for -latomic.

Makefile

index 959d5b74a97f079dc834098e5f5ef94387fed02b..d5841a549584c761f64047041106846c9d85fea6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -328,7 +328,7 @@ ifeq ($(TARGET),linux-glibc)
     USE_CPU_AFFINITY USE_THREAD USE_EPOLL USE_FUTEX USE_LINUX_TPROXY          \
     USE_ACCEPT4 USE_LINUX_SPLICE USE_PRCTL USE_THREAD_DUMP USE_NS USE_TFO     \
     USE_GETADDRINFO USE_BACKTRACE)
-ifneq ($(shell echo __arm__/__aarch64__ | $(CC) -E -xc - | grep -v '^[^\#]'),__arm__/__aarch64__)
+ifneq ($(shell echo __arm__/__aarch64__ | $(CC) -E -xc - | grep '^[^\#]'),__arm__/__aarch64__)
   TARGET_LDFLAGS=-latomic
 endif
 endif