summaryrefslogtreecommitdiffhomepage
path: root/patches/mblaze.local.patch
blob: b4840212045211012c6ea9f7843c68f2f6f28161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff -ru mblaze.orig/GNUmakefile mblaze/GNUmakefile
--- mblaze.orig/GNUmakefile	2024-05-03 20:18:24.555511858 +0200
+++ mblaze/GNUmakefile	2024-05-04 14:37:13.290044003 +0200
@@ -1,7 +1,7 @@
 CFLAGS?=-g -O2 -fstack-protector-strong -D_FORTIFY_SOURCE=2
 override CFLAGS:=-Wall -Wno-switch -Wextra $(CFLAGS)
 LDFLAGS?=-fstack-protector-strong
-LDLIBS=-lrt
+LDLIBS=-liconv
 
 OS := $(shell uname)
 
diff -ru mblaze.orig/seq.c mblaze/seq.c
--- mblaze.orig/seq.c	2024-05-03 20:09:12.020066998 +0200
+++ mblaze/seq.c	2024-05-04 14:37:58.023375461 +0200
@@ -207,12 +207,7 @@
 		d = 0;
 		b = a;
 	} else {
-		errno = 0;
 		d = strtol(a, &b, 10);
-		if (errno != 0) {
-			perror("strtol");
-			exit(2);
-		}
 	}
 
 	*out = base + d;