File otp_src_23.1.2-beam-ldflags.patch of Package erlang
diff -Ndurp otp_src_23.1.2/erts/emulator/Makefile.in otp_src_23.1.2-beam-ldflags/erts/emulator/Makefile.in
--- otp_src_23.1.2/erts/emulator/Makefile.in 2020-11-05 13:18:50.000000000 +0200
+++ otp_src_23.1.2-beam-ldflags/erts/emulator/Makefile.in 2020-11-10 21:18:34.510342360 +0200
@@ -1161,6 +1161,7 @@ $(OBJDIR)/hipe_arm.o: hipe/hip
# ----------------------------------------------------------------------
# The emulator itself
#
+LDFLAGS += $(BEAMLDFLAGS)
ifeq ($(TARGET), win32)
# Only the basic erlang to begin with eh?