Force jvm to be linked against libatomic. bullseye-staging archive/raspbian/8u312-b07-1+rpi1 raspbian/8u312-b07-1+rpi1
authorroot <root@manualdev>
Tue, 28 Dec 2021 21:41:27 +0000 (21:41 +0000)
committerroot <root@manualdev>
Tue, 28 Dec 2021 21:41:27 +0000 (21:41 +0000)
debian/patches/force-link-jvm-libatomic.diff [new file with mode: 0644]
debian/rules

diff --git a/debian/patches/force-link-jvm-libatomic.diff b/debian/patches/force-link-jvm-libatomic.diff
new file mode 100644 (file)
index 0000000..c10507f
--- /dev/null
@@ -0,0 +1,11 @@
+--- src/hotspot/make/linux/makefiles/vm.make   2021-12-28 21:36:34.345398333 +0000
++++ src/hotspot/make/linux/makefiles/vm.make   2021-12-28 21:35:31.840690120 +0000
+@@ -308,6 +308,8 @@
+   LFLAGS_VM += $(LLVM_LDFLAGS)
+ endif
++LIBS_VM += -latomic
++
+ LINK_VM = $(LINK_LIB.CC)
+ # rule for building precompiled header
index ef17f6b32e5f389a26635fae63f4eb6cf2a22a5c..ac7fd78b36002611e5c1d0b0b822a92bdccc69dd 100755 (executable)
@@ -407,6 +407,8 @@ ifneq (,$(filter $(DEB_HOST_ARCH), $(hotspot_aarch32_archs)))
        aarch32.diff
 endif
 
+COMMON_PATCHES += force-link-jvm-libatomic.diff
+
 DEFAULT_PATCHES = \
        $(COMMON_PATCHES) \
        hotspot-libpath-$(hotspot_version).diff