Blame astrometry-0.91_Fix-shared-lib-flags-so-that-the-package-can-be-built-on-.patch

426655e
From: Ole Streicher <olebole@debian.org>
426655e
Date: Thu, 1 Dec 2016 21:18:56 +0100
426655e
Subject: Fix shared lib flags so that the package can be built on s390x
426655e
426655e
---
d55c552
 util/makefile.common | 5 ++---
d55c552
 1 file changed, 2 insertions(+), 3 deletions(-)
426655e
426655e
diff --git a/util/makefile.common b/util/makefile.common
d55c552
index 0878497..2d3379e 100644
426655e
--- a/util/makefile.common
426655e
+++ b/util/makefile.common
426655e
@@ -171,9 +171,8 @@ FLAGS_DEF += $(shell $(CCTEST))
426655e
 ## environment variable in your shell.
426655e
 ## With gcc 4.2 and later, gcc should be able to make the optimal choice on its own.
426655e
 ## See the README section "I wanna go fast!" for more details.
426655e
-ifneq ($(origin ARCH_FLAGS),undefined)
426655e
-  FLAGS_DEF += $(ARCH_FLAGS)
426655e
-else
426655e
+ARCH_FLAGS := "system"
426655e
+ifndef ARCH_FLAGS
426655e
   # Try to guess some good compiler flags for this CPU.
426655e
 
426655e
   # Use -march=native if it's available (gcc 4.2 and above)