SHA256
1
0
forked from pool/schily
schily/schily-linker.diff

19 lines
865 B
Diff

Work around GNU ld shortcoming that version entities must always come in ascending order.
---
RULES/i586-linux-gcc.rul | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: schily-2018-10-30/RULES/i586-linux-gcc.rul
===================================================================
--- schily-2018-10-30.orig/RULES/i586-linux-gcc.rul
+++ schily-2018-10-30/RULES/i586-linux-gcc.rul
@@ -50,7 +50,7 @@ MAPVERS= $(_MAPVERS) # This enables to u
# files for symbol versioning. The following command reverses the order of
# the version names in the linker map file.
#
-MAPFILE_POST= | sed 's/^SCHILY/+SCHILY/' | tr '\012' '@' | tr '+' '\012' | sort -t. -k1,1 -k2,2n -k3,3n | tr '@' '\012'
+MAPFILE_POST= | sed 's/^SCHILY/+SCHILY/' | tr '\012' '@' | tr '+' '\012' | sort -V | tr '@' '\012'
#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%)
#