gnu: icedtea-7: Fix build on i686-linux.

* gnu/packages/java.scm (icedtea-7)[arguments]: Use "i386" lib directory when
the system is "i686-linux".
This commit is contained in:
Ricardo Wurmus 2019-10-04 10:36:29 +02:00
parent fc37b4afb2
commit 1b6f99ea53
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1376,7 +1376,12 @@ (define-public icedtea-7
(add-after 'install 'install-libjvm
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((lib-path (string-append (assoc-ref outputs "out")
"/lib/amd64")))
"/lib/"
,(match (%current-system)
("i686-linux"
"i386")
("x86_64-linux"
"amd64")))))
(symlink (string-append lib-path "/server/libjvm.so")
(string-append lib-path "/libjvm.so")))
#t))