gentoo-ebuilds/media-gfx/metapixel/files/metapixel-1.0.2-getopt.patch
Alexey Sokolov 91ac7792be
media-gfx/metapixel: fix build on musl
Closes: https://bugs.gentoo.org/944937
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/45019
Closes: https://github.com/gentoo/gentoo/pull/45019
Signed-off-by: Sam James <sam@gentoo.org>
2025-12-18 08:35:20 +00:00

16 lines
539 B
Diff

Use system getopt instead of custom one
https://bugs.gentoo.org/944937
--- a/Makefile
+++ b/Makefile
@@ -24,8 +24,8 @@ CC = gcc
export CCOPTS CC FORMATDEFS
LISPREADER_OBJS = lispreader.o pools.o allocator.o
-OBJS = metapixel.o vector.o zoom.o $(LISPREADER_OBJS) getopt.o getopt1.o
-CONVERT_OBJS = convert.o $(LISPREADER_OBJS) getopt.o getopt1.o
+OBJS = metapixel.o vector.o zoom.o $(LISPREADER_OBJS)
+CONVERT_OBJS = convert.o $(LISPREADER_OBJS)
IMAGESIZE_OBJS = imagesize.o
all : metapixel metapixel.1 convert metapixel-imagesize