guix-devel
[Top][All Lists]
Advanced

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

[PATCH] gnu: luajit: Add -fPIC into CFLAGS.


From: Tomáš Čech
Subject: [PATCH] gnu: luajit: Add -fPIC into CFLAGS.
Date: Mon, 15 Dec 2014 23:52:41 +0100

* gnu/packages/lua.scm (luajit): Add -fPIC into CFLAGS and pass it to make.
---
 gnu/packages/lua.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index eda69f9..0b6c4e4 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -92,7 +92,8 @@ for configuration, scripting, and rapid prototyping.")
     (arguments
      '(#:tests? #f                      ;luajit is distributed without tests
        #:phases (alist-delete 'configure %standard-phases)
-       #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs 
"out")))))
+       #:make-flags (list (string-append "CFLAGS=-fPIC " (or (getenv "CFLAGS") 
""))
+                          (string-append "PREFIX=" (assoc-ref %outputs 
"out")))))
     (home-page "http://www.luajit.org/";)
     (synopsis "Just in time compiler for Lua programming language version 5.1")
     (description
-- 
2.0.4




reply via email to

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