From e2ba7cd29617ae05087ad3d25c55a2eb8ce607a3 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 28 May 2026 23:56:29 -0300 Subject: fix issues and warnings when compiling with glibc < 2.32 (#57, #58) This also fixes some inconsistencies such as mixing both strerror and strerrordesc_np, and possible formatting issues. --- tools/makefile.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/makefile.go') diff --git a/tools/makefile.go b/tools/makefile.go index b76efcf..333f422 100644 --- a/tools/makefile.go +++ b/tools/makefile.go @@ -30,6 +30,7 @@ var ( releaseOptions = []string{"-O2"} linkerOptions = []string{ "-Wl,-t", + "-lrt", "-lcrypto", } ) @@ -80,9 +81,9 @@ func main() { // DEBUG SWITCH fmt.Fprint(&output, "DEBUG ?= 0\n") fmt.Fprint(&output, "ifneq ($(DEBUG), 0)\n") - fmt.Fprintf(&output, "\tCFLAGS += %v\n", strings.Join(debugOptions, " ")) + fmt.Fprintf(&output, " CFLAGS += %v\n", strings.Join(debugOptions, " ")) fmt.Fprint(&output, "else\n") - fmt.Fprintf(&output, "\tCFLAGS += %v\n", strings.Join(releaseOptions, " ")) + fmt.Fprintf(&output, " CFLAGS += %v\n", strings.Join(releaseOptions, " ")) fmt.Fprint(&output, "endif\n\n") // HEADERS -- cgit v1.2.3