Blame patches/mblaze.local.patch

e5d0ab
diff -ru mblaze.orig/GNUmakefile mblaze/GNUmakefile
db1f10
--- mblaze.orig/GNUmakefile	2024-05-03 20:18:24.555511858 +0200
db1f10
+++ mblaze/GNUmakefile	2024-05-04 14:37:13.290044003 +0200
e5d0ab
@@ -1,7 +1,7 @@
e5d0ab
 CFLAGS?=-g -O2 -fstack-protector-strong -D_FORTIFY_SOURCE=2
e5d0ab
 override CFLAGS:=-Wall -Wno-switch -Wextra $(CFLAGS)
e5d0ab
 LDFLAGS?=-fstack-protector-strong
e5d0ab
-LDLIBS=-lrt
e5d0ab
+LDLIBS=-liconv
e5d0ab
 
e5d0ab
 OS := $(shell uname)
e5d0ab
 
db1f10
diff -ru mblaze.orig/seq.c mblaze/seq.c
db1f10
--- mblaze.orig/seq.c	2024-05-03 20:09:12.020066998 +0200
db1f10
+++ mblaze/seq.c	2024-05-04 14:37:58.023375461 +0200
db1f10
@@ -207,12 +207,7 @@
db1f10
 		d = 0;
db1f10
 		b = a;
db1f10
 	} else {
db1f10
-		errno = 0;
db1f10
 		d = strtol(a, &b, 10);
db1f10
-		if (errno != 0) {
db1f10
-			perror("strtol");
db1f10
-			exit(2);
db1f10
-		}
db1f10
 	}
db1f10
 
db1f10
 	*out = base + d;