unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: cross-gcc-arguments: Add Hurd-core-headers lib directory to the "CROSS_LIBRARY_PATH".
@ 2016-06-08 14:55 Manolis Ragkousis
  2016-06-12 16:42 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Manolis Ragkousis @ 2016-06-08 14:55 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

Hello everyone,

Thanks to the previous patch for cross-libc, this patch is the only
change needed for cross-gcc to work properly when targeting GNU/Hurd.

Thank you,
Manolis


[-- Attachment #2: 0001-gnu-cross-gcc-arguments-Add-Hurd-core-headers-lib-di.patch --]
[-- Type: text/x-patch, Size: 1265 bytes --]

From 77b12cc2aa1a79a2f15b96d80a14d76e3501aeb1 Mon Sep 17 00:00:00 2001
From: Manolis Ragkousis <manolis837@gmail.com>
Date: Wed, 8 Jun 2016 17:46:19 +0300
Subject: [PATCH] gnu: cross-gcc-arguments: Add Hurd-core-headers lib directory
 to the "CROSS_LIBRARY_PATH".

* gnu/packages/cross-base.scm (cross-gcc-arguments)[arguments]: Add Hurd-core-headers lib
directory to the "CROSS_LIBRARY_PATH".
---
 gnu/packages/cross-base.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index db2e104..fd2fc4e 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -187,7 +187,9 @@ may be either a libc package or #f.)"
                                   "CROSS_OBJC_INCLUDE_PATH"
                                   "CROSS_OBJCPLUS_INCLUDE_PATH")))
                     (setenv "CROSS_LIBRARY_PATH"
-                            (string-append libc "/lib"))
+                            (string-append libc "/lib"
+                                           ;; We need this for GNU/Hurd.
+                                           ":" kernel "/lib"))
                     (for-each
                      (lambda (var)
                        (and=> (getenv var)
-- 
2.8.2


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

* Re: [PATCH] gnu: cross-gcc-arguments: Add Hurd-core-headers lib directory to the "CROSS_LIBRARY_PATH".
  2016-06-08 14:55 [PATCH] gnu: cross-gcc-arguments: Add Hurd-core-headers lib directory to the "CROSS_LIBRARY_PATH" Manolis Ragkousis
@ 2016-06-12 16:42 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2016-06-12 16:42 UTC (permalink / raw)
  To: Manolis Ragkousis; +Cc: guix-devel

Hi!

Manolis Ragkousis <manolis837@gmail.com> skribis:

> From 77b12cc2aa1a79a2f15b96d80a14d76e3501aeb1 Mon Sep 17 00:00:00 2001
> From: Manolis Ragkousis <manolis837@gmail.com>
> Date: Wed, 8 Jun 2016 17:46:19 +0300
> Subject: [PATCH] gnu: cross-gcc-arguments: Add Hurd-core-headers lib directory
>  to the "CROSS_LIBRARY_PATH".

Subject too long; what about: “gnu: cross-gcc: Allow Hurd libraries to
be found.”?

> * gnu/packages/cross-base.scm (cross-gcc-arguments)[arguments]: Add Hurd-core-headers lib
> directory to the "CROSS_LIBRARY_PATH".

Rather “Add ‘KERNEL/lib’ to ‘CROSS_LIBRARY_PATH’.”

> -                            (string-append libc "/lib"))
> +                            (string-append libc "/lib"
> +                                           ;; We need this for GNU/Hurd.
> +                                           ":" kernel "/lib"))

Maybe write it as:

  (string-append libc "/lib:"
                 kernel "/lib")  ;for Hurd’s libihash

OK with these changes.

What’s confusing is that the hurd-core-headers package actually contains
libihash.a (and libstore.a?) in addition to headers, right?

Thanks!

Ludo’.

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

end of thread, other threads:[~2016-06-12 16:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-08 14:55 [PATCH] gnu: cross-gcc-arguments: Add Hurd-core-headers lib directory to the "CROSS_LIBRARY_PATH" Manolis Ragkousis
2016-06-12 16:42 ` Ludovic Courtès

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).