gnu: gzstream: Add PIC flag.

* gnu/packages/compression.scm (gzstream) [arguments]: Add phase 'use-pic.
This commit is contained in:
Lars-Dominik Braun 2021-03-15 10:05:24 +01:00
parent e415003202
commit ee4ba54271
No known key found for this signature in database
GPG key ID: 421377011A378446

View file

@ -27,7 +27,7 @@
;;; Copyright © 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2020 Lars-Dominik Braun <lars@6xq.net>
;;; Copyright © 2020, 2021 Lars-Dominik Braun <lars@6xq.net>
;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2020 Léo Le Bouter <lle-bout@zaclys.net>
;;; Copyright © 2021 Antoine Côté <antoine.cote@posteo.net>
@ -1224,6 +1224,12 @@ (define-public gzstream
`(#:test-target "test"
#:phases
(modify-phases %standard-phases
;; Enable PIC, so it can be used in shared libraries.
(add-after 'unpack 'use-pic
(lambda _
(substitute* "Makefile"
(("CPPFLAGS = " all) (string-append all "-fPIC ")))
#t))
(delete 'configure)
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)