From 340b1cf8f79cc9ea7232453e0052d2418c806103 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 28 Sep 2021 20:11:36 -0500 Subject: The mac compiler can't optimize out unused functions. For some reason "configure" is explicitly NOT passing LDOPTIMIZE="-Wl,--gc-sections" to the mac build. I don't know why, but it means the linker includes unused functions in the binary, and thus complains about unused dependencies being missing. --- lib/portability.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/portability.h b/lib/portability.h index a1dd3a6d..7d8334b8 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -197,7 +197,7 @@ void *memmem(const void *haystack, size_t haystack_length, #include #else #define PER_LINUX32 0 -void personality(int x); +#define personality(x) #endif #if defined(__APPLE__) || defined(__linux__) -- cgit v1.2.3