gnu: libsigsegv: Install the shared library.
Suggested by Weldon Goree <weldon@b.rontosaur.us>. * gnu/packages/libsigsegv.scm (libsigsegv)[arguments]: Add #:configure-flags.
This commit is contained in:
		
							parent
							
								
									a551ba9ba7
								
							
						
					
					
						commit
						3cc9a8a132
					
				
					 1 changed files with 18 additions and 15 deletions
				
			
		| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
;;; GNU Guix --- Functional package management for GNU
 | 
					;;; GNU Guix --- Functional package management for GNU
 | 
				
			||||||
;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
 | 
					;;; Copyright © 2012, 2013, 2018 Ludovic Courtès <ludo@gnu.org>
 | 
				
			||||||
;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
 | 
					;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
 | 
				
			||||||
;;;
 | 
					;;;
 | 
				
			||||||
;;; This file is part of GNU Guix.
 | 
					;;; This file is part of GNU Guix.
 | 
				
			||||||
| 
						 | 
					@ -38,20 +38,23 @@
 | 
				
			||||||
   (home-page "https://www.gnu.org/software/libsigsegv/")
 | 
					   (home-page "https://www.gnu.org/software/libsigsegv/")
 | 
				
			||||||
   (synopsis "Library for handling page faults")
 | 
					   (synopsis "Library for handling page faults")
 | 
				
			||||||
   (arguments
 | 
					   (arguments
 | 
				
			||||||
    ;; On MIPS, work around this error:
 | 
					    `(;; The shared library isn't built by default but some packages need it.
 | 
				
			||||||
    ;;
 | 
					      #:configure-flags '("--enable-shared")
 | 
				
			||||||
    ;; In file included from fault-linux-mips-old.h:18:0,
 | 
					
 | 
				
			||||||
    ;;    [...]
 | 
					      ;; On MIPS, work around this error:
 | 
				
			||||||
    ;; linux-libre-headers-cross-mips64el-linux-gnu-3.3.8/include/asm/sigcontext.h:57:8: error: redefinition of 'struct sigcontext'
 | 
					      ;;
 | 
				
			||||||
    (if (string-contains (or (%current-target-system) (%current-system))
 | 
					      ;; In file included from fault-linux-mips-old.h:18:0,
 | 
				
			||||||
                         "mips64el")
 | 
					      ;;    [...]
 | 
				
			||||||
        `(#:phases (modify-phases %standard-phases
 | 
					      ;; linux-libre-headers-cross-mips64el-linux-gnu-3.3.8/include/asm/sigcontext.h:57:8: error: redefinition of 'struct sigcontext'
 | 
				
			||||||
                     (add-before 'configure 'patch-mips-old-h
 | 
					      ,@(if (string-contains (or (%current-target-system) (%current-system))
 | 
				
			||||||
                       (lambda _
 | 
					                             "mips64el")
 | 
				
			||||||
                         (substitute* "src/fault-linux-mips-old.h"
 | 
					            `(#:phases (modify-phases %standard-phases
 | 
				
			||||||
                           (("#include <asm/sigcontext\\.h>") ""))
 | 
					                         (add-before 'configure 'patch-mips-old-h
 | 
				
			||||||
                         #t))))
 | 
					                           (lambda _
 | 
				
			||||||
        '()))
 | 
					                             (substitute* "src/fault-linux-mips-old.h"
 | 
				
			||||||
 | 
					                               (("#include <asm/sigcontext\\.h>") ""))
 | 
				
			||||||
 | 
					                             #t))))
 | 
				
			||||||
 | 
					            '())))
 | 
				
			||||||
   (description
 | 
					   (description
 | 
				
			||||||
    "GNU libsigsegv is a library to handle page faults, which occur when a
 | 
					    "GNU libsigsegv is a library to handle page faults, which occur when a
 | 
				
			||||||
program tries to access an unavailable region of memory, in user mode.  By
 | 
					program tries to access an unavailable region of memory, in user mode.  By
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue