Adds proper link flag to the example recipe

Signed-off-by: lb1107039128 <liubo1@xfusion.com>
This commit is contained in:
lb1107039128 2023-12-28 11:35:41 +08:00
parent ba37749016
commit 4882a44485
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
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

View File

@ -1,12 +1,13 @@
Name: libimagequant
Version: 2.13.1
Release: 1
Release: 2
Summary: Palette quantization library
License: GPLv3+ and MIT
URL: https://github.com/ImageOptim/libimagequant
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0000: libimagequant_solibperm.patch
Patch0001: 0001-Adds-proper-link-flag-to-the-example-recipe.patch
%description
The portable C library can convert RGBA images into
@ -45,6 +46,9 @@ rm -f %{buildroot}%{_libdir}/%{name}.a
%{_libdir}/pkgconfig/imagequant.pc
%changelog
* Thu Dec 28 2023 liubo <liubo1@xfusion.com> - 2.13.1-2
- Adds proper link flag to the example recipe
* Wed Mar 03 2021 hanhui<hanhui15@huawei.com> - 2.13.1-1
- update to 2.13.1