gnu: lua: Build with support for dynamic libraries.
* gnu/packages/lua.scm (lua)[arguments]: Use regular build phase and add make-flags.
This commit is contained in:
		
							parent
							
								
									be9f3a8331
								
							
						
					
					
						commit
						07cbe28ede
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
					@ -4,6 +4,7 @@
 | 
				
			||||||
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
 | 
					;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
 | 
				
			||||||
;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
 | 
					;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
 | 
				
			||||||
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
 | 
					;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
 | 
				
			||||||
 | 
					;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
 | 
				
			||||||
;;;
 | 
					;;;
 | 
				
			||||||
;;; This file is part of GNU Guix.
 | 
					;;; This file is part of GNU Guix.
 | 
				
			||||||
;;;
 | 
					;;;
 | 
				
			||||||
| 
						 | 
					@ -44,14 +45,15 @@
 | 
				
			||||||
    (inputs `(("readline" ,readline)))
 | 
					    (inputs `(("readline" ,readline)))
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     '(#:modules ((guix build gnu-build-system)
 | 
					     '(#:modules ((guix build gnu-build-system)
 | 
				
			||||||
                    (guix build utils)
 | 
					                  (guix build utils)
 | 
				
			||||||
                    (srfi srfi-1))
 | 
					                  (srfi srfi-1))
 | 
				
			||||||
       #:test-target "test"
 | 
					       #:test-target "test"
 | 
				
			||||||
 | 
					       #:make-flags
 | 
				
			||||||
 | 
					       '("CFLAGS=-fPIC -DLUA_DL_DLOPEN -DLUA_USE_POSIX"
 | 
				
			||||||
 | 
					         "linux")
 | 
				
			||||||
       #:phases
 | 
					       #:phases
 | 
				
			||||||
       (modify-phases %standard-phases
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
         (delete 'configure)
 | 
					         (delete 'configure)
 | 
				
			||||||
         (replace 'build
 | 
					 | 
				
			||||||
           (lambda _ (zero? (system* "make" "CFLAGS=-fPIC" "linux"))))
 | 
					 | 
				
			||||||
         (replace 'install
 | 
					         (replace 'install
 | 
				
			||||||
           (lambda* (#:key outputs #:allow-other-keys)
 | 
					           (lambda* (#:key outputs #:allow-other-keys)
 | 
				
			||||||
             (let ((out (assoc-ref outputs "out")))
 | 
					             (let ((out (assoc-ref outputs "out")))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue