libimagequant/0001-Adds-proper-link-flag-to-the-example-recipe.patch
lb1107039128 4882a44485 Adds proper link flag to the example recipe
Signed-off-by: lb1107039128 <liubo1@xfusion.com>
2023-12-28 14:02:14 +08:00

26 lines
734 B
Diff

From e8b944c34889cccc2d3c14db9c0b0cd4651d6dd4 Mon Sep 17 00:00:00 2001
From: Smokie <29041430+smokes@users.noreply.github.com>
Date: Tue, 1 Dec 2020 16:42:34 +0100
Subject: [PATCH] Adds proper link flag to the example recipe
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index ae8f896..dca4115 100644
--- a/Makefile
+++ b/Makefile
@@ -93,7 +93,7 @@ cargo:
cargo test
example: example.c lodepng.h lodepng.c $(STATICLIB)
- $(CC) -g $(CFLAGS) -Wall example.c $(STATICLIB) -o example
+ $(CC) -g $(CFLAGS) -Wall example.c $(STATICLIB) -o example -lm
lodepng.h:
curl -o lodepng.h -L https://raw.githubusercontent.com/lvandeve/lodepng/master/lodepng.h
--
2.42.0.windows.2