File 1056-make_driver_tab-also-strip-.gprof-marker-from-static.patch of Package erlang
From 7e2383ad3546505632c047ddff04c5bcbb9b6df9 Mon Sep 17 00:00:00 2001
From: Mikael Pettersson <mikael.pettersson@klarna.com>
Date: Thu, 12 Nov 2020 17:12:55 +0100
Subject: [PATCH 1/2] make_driver_tab: also strip .gprof marker from static
archive
Otherwise the build fails due to invalid identifiers.
---
erts/emulator/utils/make_driver_tab | 1 +
1 file changed, 1 insertion(+)
diff --git a/erts/emulator/utils/make_driver_tab b/erts/emulator/utils/make_driver_tab
index a000b9d415..78b6fba254 100755
--- a/erts/emulator/utils/make_driver_tab
+++ b/erts/emulator/utils/make_driver_tab
@@ -52,6 +52,7 @@ while (@ARGV) {
if ( $d =~ /^.*\.a$/ ) {
$d = basename $d;
$d =~ s/\.a$//; # strip .a
+ $d =~ s/\.gprof$//; # strip .gprof
if ($mode == 1) {
push(@static_drivers, $d);
}
--
2.26.2