gnu: java-swt: Fix build on some systems.

* gnu/packages/java.scm (java-swt)[arguments]: Adjust the custom
'build-native phase to set the C compiler.

Change-Id: Ie961ea91e5cd2ce9fc7b2228e08d082a5a1cfe06
This commit is contained in:
Efraim Flashner 2024-05-15 11:40:42 +03:00
parent 90d0299cfc
commit 884cf293f5
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -9,7 +9,7 @@
;;; Copyright © 2017, 2019, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018, 2019 Gábor Boskovits <boskovits@gmail.com>
;;; Copyright © 2018 Chris Marusich <cmmarusich@gmail.com>
;;; Copyright © 2018-2023 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018-2024 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2019, 2020, 2021 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
@ -3102,6 +3102,7 @@ (define-public java-swt
;; package output.
(mkdir-p lib)
(setenv "OUTPUT_DIR" lib)
(setenv "CC" ,(cc-for-target))
(with-directory-excursion "src"
(invoke "bash" "build.sh")))))
(add-after 'install 'install-native