guix-devel
[Top][All Lists]
Advanced

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

[PATCH] gnu: libffi: Symlink header files instead of moving them into {$


From: Sree Harsha Totakura
Subject: [PATCH] gnu: libffi: Symlink header files instead of moving them into {$prefix}/include to make them consistent with installed pkg-config file.
Date: Mon, 27 Jan 2014 13:24:19 +0100

* gnu/packages/libffi.scm (libffi): Symlink header files instead of moving them.
---
 gnu/packages/libffi.scm |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/libffi.scm b/gnu/packages/libffi.scm
index d1a834d..978481a 100644
--- a/gnu/packages/libffi.scm
+++ b/gnu/packages/libffi.scm
@@ -32,8 +32,10 @@
             (with-directory-excursion
                 (string-append out "/lib/libffi-3.0.13/include")
               (for-each (lambda (h)
-                          (format #t "moving `~a' to includedir~%" h)
-                          (rename-file h (string-append out "/include/" h)))
+                          (format #t "Linking `~a' to includedir~%" h)
+                          (symlink
+                           (string-append out "/lib/libffi-3.0.13/include/" h)
+                           (string-append out "/include/" h)))
                         (scandir "."
                                  (lambda (x)
                                    (not (member x '("." ".."))))))))))
-- 
1.7.10.4




reply via email to

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