unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] config-daemon.ac: detect host AR
@ 2017-02-04 16:00 Sergei Trofimovich
  0 siblings, 0 replies; 4+ messages in thread
From: Sergei Trofimovich @ 2017-02-04 16:00 UTC (permalink / raw)
  To: guix-devel

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 <slyfox@inbox.ru>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] config-daemon.ac: detect host AR
@ 2017-02-04 17:32 Sergei Trofimovich
  0 siblings, 0 replies; 4+ messages in thread
From: Sergei Trofimovich @ 2017-02-04 17:32 UTC (permalink / raw)
  To: guix-devel

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 <slyfox@inbox.ru>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] config-daemon.ac: detect host AR
@ 2017-02-04 17:40 Sergei Trofimovich
  2017-02-06  9:38 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Sergei Trofimovich @ 2017-02-04 17:40 UTC (permalink / raw)
  To: guix-devel

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 <slyfox@inbox.ru>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] config-daemon.ac: detect host AR
  2017-02-04 17:40 [PATCH] config-daemon.ac: detect host AR Sergei Trofimovich
@ 2017-02-06  9:38 ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2017-02-06  9:38 UTC (permalink / raw)
  To: Sergei Trofimovich; +Cc: guix-devel

Sergei Trofimovich <slyfox@inbox.ru> skribis:

> 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

Good catch.  Applied, thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-06  9:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-04 17:40 [PATCH] config-daemon.ac: detect host AR Sergei Trofimovich
2017-02-06  9:38 ` Ludovic Courtès
  -- strict thread matches above, loose matches on Subject: below --
2017-02-04 17:32 Sergei Trofimovich
2017-02-04 16:00 Sergei Trofimovich

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).