Merge pull request #176093 from trofi/workaround-fno-common-for-javaPackages.jogl_2_3_2

javaPackages.jogl_2_3_2: add -fcommon workaround
This commit is contained in:
Sandro 2022-06-03 20:42:17 +02:00 committed by GitHub
commit 381f34e35c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,11 @@
nativeBuildInputs = [ jdk8 ant git ];
buildInputs = [ udev xorg.libX11 xorg.libXrandr xorg.libXcursor xorg.libXt xorg.libXxf86vm xorg.libXrender ];
# Workaround build failure on -fno-common toolchains:
# ld: ../obj/Bindingtest1p1Impl_JNI.o:(.bss+0x8): multiple definition of
# `unsigned_size_t_1'; ../obj/TK_Surface_JNI.o:(.bss+0x8): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
buildPhase = ''
cp -r ${gluegen-src} $NIX_BUILD_TOP/gluegen
chmod -R +w $NIX_BUILD_TOP/gluegen