emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#26004: closed ([PATCH] gnu: re2: fix CXX for cross


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#26004: closed ([PATCH] gnu: re2: fix CXX for cross-compilation)
Date: Sat, 11 Mar 2017 21:02:02 +0000

Your message dated Sat, 11 Mar 2017 22:01:29 +0100
with message-id <address@hidden>
and subject line Re: bug#26004: [PATCH] gnu: re2: fix CXX for cross-compilation
has caused the debbugs.gnu.org bug report #26004,
regarding [PATCH] gnu: re2: fix CXX for cross-compilation
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
26004: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=26004
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] gnu: re2: fix CXX for cross-compilation Date: Mon, 6 Mar 2017 21:54:19 +0000
* gnu/packages/regex.scm(re2): propagate target-g++ for CXX
---
 gnu/packages/regex.scm | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/regex.scm b/gnu/packages/regex.scm
index 11f471603..144699853 100644
--- a/gnu/packages/regex.scm
+++ b/gnu/packages/regex.scm
@@ -22,7 +22,9 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
-  #:use-module (guix build-system gnu))
+  #:use-module (guix build-system gnu)
+  #:use-module (guix utils)
+  )
 
 (define-public re2
    (package
@@ -42,7 +44,16 @@
      (arguments
       `(#:test-target "test"
         ;; There is no configure step, but the Makefile respects a prefix.
-        #:make-flags (list (string-append "prefix=" %output))
+        ;; As ./configure does not known anything about target CXX
+        ;; we need to specify <target>-g++ explicitly.
+        #:make-flags (list (string-append "prefix=" %output)
+                           (string-append
+                             "CXX=" ,(string-append
+                                       (if (%current-target-system)
+                                           (string-append
+                                             (%current-target-system) "-")
+                                           "")
+                                       "g++")))
         #:phases
         (modify-phases %standard-phases
           (delete 'configure)
-- 
2.12.0




--- End Message ---
--- Begin Message --- Subject: Re: bug#26004: [PATCH] gnu: re2: fix CXX for cross-compilation Date: Sat, 11 Mar 2017 22:01:29 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
Sergei Trofimovich <address@hidden> skribis:

> * gnu/packages/regex.scm(re2): propagate target-g++ for CXX

Pushed, thanks!

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]