[sr-dev] git:master:2bea7f5a: Makefile.defs: explicit retarget of amd64 arch to x86_64

Daniel-Constantin Mierla miconda at gmail.com
Wed Mar 15 13:30:31 CET 2017


Module: kamailio
Branch: master
Commit: 2bea7f5a4b2d2ddba9d9a8f050b2ceeb79d2381c
URL: https://github.com/kamailio/kamailio/commit/2bea7f5a4b2d2ddba9d9a8f050b2ceeb79d2381c

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-03-15T13:28:44+01:00

Makefile.defs: explicit retarget of amd64 arch to x86_64

- it is supposed to be done by the arch detection scripts, but it may
  fail on various systems having a different output than expected

---

Modified: src/Makefile.defs

---

Diff:  https://github.com/kamailio/kamailio/commit/2bea7f5a4b2d2ddba9d9a8f050b2ceeb79d2381c.diff
Patch: https://github.com/kamailio/kamailio/commit/2bea7f5a4b2d2ddba9d9a8f050b2ceeb79d2381c.patch

---

diff --git a/src/Makefile.defs b/src/Makefile.defs
index aed65b6..eb6993a 100644
--- a/src/Makefile.defs
+++ b/src/Makefile.defs
@@ -374,6 +374,12 @@ ARCH:=$(CC_ARCH)
 else
 ARCH:=$(HOST_ARCH)
 endif
+
+# retarget amd64 to x86_64
+ifeq ($(ARCH), amd64)
+	ARCH=x86_64
+endif
+
 $(info target architecture <$(ARCH)>, host architecture <$(HOST_ARCH)>)
 
 LIBDIR ?=
@@ -788,10 +794,6 @@ ifeq ($(ARCH), x86_64)
 	use_fast_lock=yes
 endif
 
-ifeq ($(ARCH), amd64)
-	use_fast_lock=yes
-endif
-
 ifeq ($(ARCH), sparc64)
 ifeq 	($(CC_NAME), gcc)
 	use_fast_lock=yes




More information about the sr-dev mailing list