gnu: icu4c: Make 'libicudata.so' behave the same on all architectures.

* gnu/packages/icu4c.scm (icu4c)[arguments]: Do not pass
'--with-data-packaging=archive' in #:configure-flags.  Add phase to enable use
of standard libraries in libicudata.so.
This commit is contained in:
Marius Bakke 2019-07-23 19:11:33 +02:00
parent 7999d317bc
commit f73fe13ccd
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA

View File

@ -76,17 +76,19 @@
`(("perl" ,perl)))
(arguments
`(#:configure-flags
'("--enable-rpath"
,@(if (let ((s (or (%current-target-system)
(%current-system))))
(or (string-prefix? "arm" s)
(string-prefix? "mips" s)))
'("--with-data-packaging=archive")
'()))
'("--enable-rpath")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'chdir-to-source
(lambda _ (chdir "source") #t))
(add-after 'chdir-to-source 'update-LDFLAGS
(lambda _
;; Do not create a "data-only" libicudata.so because it causes
;; problems on some architectures (notably armhf and MIPS).
(substitute* "config/mh-linux"
(("LDFLAGSICUDT=-nodefaultlibs -nostdlib")
"LDFLAGSICUDT="))
#t))
(add-after 'install 'avoid-coreutils-reference
;; Don't keep a reference to the build tools.
(lambda* (#:key outputs #:allow-other-keys)