From dabced9391074cffa95e7ee54a3954b15abcc22d Mon Sep 17 00:00:00 2001 From: Reinhold Gschweicher Date: Mon, 3 Jun 2024 22:48:07 +0200 Subject: [PATCH] make: allow LDFLAGS to be passed Allow the user to add linker flags to the make command by setting the `LDFLAGS` environment variable. This allows to have the `capstone` library installed at a non-system-wide place and link to it. ```sh LDFLAGS="-L../capstone-5.0.1/_install/lib/" make ``` --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 865ecfe..a433e9a 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ TDIR = test CC = gcc CFLAGS = -I$(IDIR) -I$(LDIR) -fPIC -Werror -Wall -Wextra -Wno-unused-parameter -LIBS = -lm +LIBS = $(LDFLAGS) -lm WASM_FUNCS = malloc pinetime_new pinetime_step pinetime_loop pinetime_get_st7789 st7789_read_screen st7789_is_sleeping memset_test