1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/testing/libretro-crocods/patch-unbundle.patch
2021-06-03 13:38:09 +00:00

33 lines
737 B
Diff

Remove bundled zlib.
--- a/Makefile.common
+++ b/Makefile.common
@@ -2,5 +2,4 @@
$(wildcard $(CORE_DIR)/crocods-core/*.c) \
$(wildcard $(CORE_DIR)/crocods-core/iniparser/*.c) \
$(wildcard $(CORE_DIR)/crocods-core/resources/*.c) \
- $(wildcard $(CORE_DIR)/deps/*.c) \
- $(wildcard $(CORE_DIR)/deps/libz/*.c)
+ $(wildcard $(CORE_DIR)/deps/*.c)
--- a/Makefile
+++ b/Makefile
@@ -290,7 +290,7 @@
CFLAGS +=
LFLAGS :=
-LDFLAGS += $(LIBM)
+LDFLAGS += $(LIBM) -lz
ifeq ($(platform), osx)
ifndef ($(NOUNIVERSAL))
--- a/deps/ziptool.c
+++ b/deps/ziptool.c
@@ -4,7 +4,8 @@
#include <string.h>
#include <ctype.h>
-#include "libz/zlib.h"
+#include <zlib.h>
+
#include "ziptool.h"
typedef char bool;