From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Trofimovich Subject: [PATCH] config-daemon.ac: detect host AR Date: Sat, 4 Feb 2017 17:40:34 +0000 Message-ID: <20170204174034.20324-1-slyfox@inbox.ru> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ca4Kg-00049a-Ee for guix-devel@gnu.org; Sat, 04 Feb 2017 12:41:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ca4Kc-0007of-H3 for guix-devel@gnu.org; Sat, 04 Feb 2017 12:41:06 -0500 Received: from smtp2.mail.ru ([94.100.179.91]:42105) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ca4Kc-0007nu-4j for guix-devel@gnu.org; Sat, 04 Feb 2017 12:41:02 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org The problem is seen when we try to use explicit host: ./configure --prefix=/usr --localstatedir=/var/lib --host=x86_64-pc-linux-gnu make V=1 Before the change: ar cru libstore.a nix/libstore/libstore_a-gc.o After the change: x86_64-pc-linux-gnu-ar cru libstore.a * config-daemon.ac: use AM_PROG_AR to detect host AR Signed-off-by: Sergei Trofimovich --- config-daemon.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/config-daemon.ac b/config-daemon.ac index 056c939e3..42b59819d 100644 --- a/config-daemon.ac +++ b/config-daemon.ac @@ -5,6 +5,7 @@ AC_MSG_RESULT([$guix_build_daemon]) dnl C++ environment. This macro must be used unconditionnaly. AC_PROG_CXX +AM_PROG_AR AC_LANG([C++]) if test "x$guix_build_daemon" = "xyes"; then -- 2.11.1