guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: wordnet: Include PIC objects in libWN.a.


From: Ludovic Courtès
Subject: 01/01: gnu: wordnet: Include PIC objects in libWN.a.
Date: Tue, 30 Jan 2018 18:04:12 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit fc12c5237c459ca13ac920b518aea4db8faa4555
Author: Ludovic Courtès <address@hidden>
Date:   Tue Jan 30 22:46:46 2018 +0100

    gnu: wordnet: Include PIC objects in libWN.a.
    
    Fixes a Dico build failure introduced in commit
    a6a9e628693ed2d49cd9cdfca597fd4e63bbdef0.
    
    * gnu/packages/wordnet.scm (wordnet)[arguments]: Add 'build-libwn-PIC'
    phase.
---
 gnu/packages/wordnet.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/wordnet.scm b/gnu/packages/wordnet.scm
index 8d96936..abec2f0 100644
--- a/gnu/packages/wordnet.scm
+++ b/gnu/packages/wordnet.scm
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2013, 2016, 2017 Ludovic Courtès <address@hidden>
+;;; Copyright © 2013, 2016, 2017, 2018 Ludovic Courtès <address@hidden>
 ;;; Copyright © 2016 Efraim Flashner <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -55,6 +55,12 @@
                                "CFLAGS=-DUSE_INTERP_RESULT -O2")
        #:phases
        (modify-phases %standard-phases
+         (add-before 'build 'build-libwn-PIC
+           (lambda _
+             ;; GNU Dico links libWN.a in its wordnet.so plugin, so it needs
+             ;; PIC.
+             (invoke "make" "-C" "lib" "CFLAGS=-O2 -g -fPIC"
+                     "LDFLAGS=-fPIC")))
          (add-after 'install 'post-install
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out"))



reply via email to

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