Disable 7zip with static builds

This commit is contained in:
Tony Jansson 2020-11-11 02:22:44 +02:00
parent 39e22af170
commit 89877fa78a
2 changed files with 11 additions and 0 deletions

View File

@ -384,6 +384,11 @@ else
LDFLAGS += -s
endif
# Skip 7zip for static builds
ifneq ($(STATIC_LINKING), 1)
COMMONFLAGS += -DHAVE_7ZIP
endif
COMMONFLAGS += -DWANT_ZLIB -DHAVE_CONFIG_H -D__LIBRETRO__ -DCORE_NAME=\"$(EMUTYPE)\"
include Makefile.common

View File

@ -282,6 +282,7 @@ void zip_uncompress(char *in, char *out, char *lastfile)
}
/* 7zip */
#ifdef HAVE_7ZIP
struct sevenzip_context_t
{
uint8_t *output;
@ -476,6 +477,11 @@ void sevenzip_uncompress(char *in, char *out, char *lastfile)
SzArEx_Free(&db, &allocImp);
File_Close(&archiveStream.file);
}
#else
void sevenzip_uncompress(char *in, char *out, char *lastfile)
{
}
#endif
/* NIBTOOLS */
typedef unsigned char BYTE;