gnu: wordnet: Include PIC objects in libWN.a.
Fixes a Dico build failure introduced in commit
a6a9e62869
.
* gnu/packages/wordnet.scm (wordnet)[arguments]: Add 'build-libwn-PIC'
phase.
This commit is contained in:
parent
cd60284dc6
commit
fc12c5237c
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2013, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2013, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -55,6 +55,12 @@
|
||||||
"CFLAGS=-DUSE_INTERP_RESULT -O2")
|
"CFLAGS=-DUSE_INTERP_RESULT -O2")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-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
|
(add-after 'install 'post-install
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out"))
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
|
Loading…
Reference in New Issue