gnu: lua: Compile with -fPIC.
* gnu/packages/lua.scm (lua): Add -fPIC to CFLAGS and LDFLAGS.
This commit is contained in:
		
							parent
							
								
									395bea2a53
								
							
						
					
					
						commit
						90f80bf21c
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -2,6 +2,7 @@
 | 
				
			||||||
;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
 | 
					;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
 | 
				
			||||||
;;; Copyright © 2014 Raimon Grau <raimonster@gmail.com>
 | 
					;;; Copyright © 2014 Raimon Grau <raimonster@gmail.com>
 | 
				
			||||||
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
 | 
					;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
 | 
				
			||||||
 | 
					;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
 | 
				
			||||||
;;;
 | 
					;;;
 | 
				
			||||||
;;; This file is part of GNU Guix.
 | 
					;;; This file is part of GNU Guix.
 | 
				
			||||||
;;;
 | 
					;;;
 | 
				
			||||||
| 
						 | 
					@ -45,7 +46,7 @@
 | 
				
			||||||
       #:test-target "test"
 | 
					       #:test-target "test"
 | 
				
			||||||
       #:phases (alist-replace
 | 
					       #:phases (alist-replace
 | 
				
			||||||
                 'build
 | 
					                 'build
 | 
				
			||||||
                 (lambda _ (zero? (system* "make" "linux"))) ; XXX: Other OS.
 | 
					                 (lambda _ (zero? (system* "make" "CFLAGS=-fPIC" "linux")))
 | 
				
			||||||
                 (alist-replace
 | 
					                 (alist-replace
 | 
				
			||||||
                  'install
 | 
					                  'install
 | 
				
			||||||
                  (lambda* (#:key outputs #:allow-other-keys)
 | 
					                  (lambda* (#:key outputs #:allow-other-keys)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue