gnu: openssl: Allow shared objects to be stripped.

* gnu/packages/tls.scm (openssl)[arguments]: Add
  'make-libraries-writable' phase.
This commit is contained in:
Ludovic Courtès 2015-09-09 18:30:34 +02:00
parent 4fb254a339
commit fe8199a80c

View file

@ -237,6 +237,16 @@ (define-public openssl
(string-prefix? "armhf" (%current-system)))
'("-mfpu=vfpv3")
'()))))))
(add-after
'install 'make-libraries-writable
(lambda* (#:key outputs #:allow-other-keys)
;; Make libraries writable so that 'strip' does its job.
(let ((out (assoc-ref outputs "out")))
(for-each (lambda (file)
(chmod file #o644))
(find-files (string-append out "/lib")
"\\.so"))
#t)))
(add-before
'patch-source-shebangs 'patch-tests
(lambda* (#:key inputs native-inputs #:allow-other-keys)