From 1dfcce07bb9112245949f95be9acf012114127f9 Mon Sep 17 00:00:00 2001 From: jaburns Date: Fri, 15 Apr 2022 13:41:32 -0600 Subject: [PATCH] Fix musl build not actually statically linking musl --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index fe906b5..ca34fef 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,13 @@ default: lib ifdef LIBSM64_MUSL - CC := musl-gcc + CC := musl-gcc + LDFLAGS := -lm -static -shared else - CC := cc + CC := cc + LDFLAGS := -lm -shared endif -CFLAGS := -g -Wall -fPIC -DSM64_LIB_EXPORT -LDFLAGS := -lm -shared +CFLAGS := -g -Wall -fPIC -DSM64_LIB_EXPORT SRC_DIRS := src src/decomp src/decomp/engine src/decomp/game src/decomp/mario src/decomp/tools BUILD_DIR := build