Skip to content

Commit

Permalink
[depends] always use our own zlib
Browse files Browse the repository at this point in the history
  • Loading branch information
wsnipex committed Nov 3, 2016
1 parent f74b5fd commit 53aea17
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
1 change: 0 additions & 1 deletion tools/depends/Makefile.include.in
Expand Up @@ -26,7 +26,6 @@ AAPT=@AAPT@
DX=@DX@
ZIPALIGN=@ZIPALIGN@

HAS_ZLIB=@has_zlib@
NEED_LIBICONV=@need_libiconv@
LINK_ICONV=@link_iconv@
ENABLE_GPLV3=@use_gplv3@
Expand Down
2 changes: 0 additions & 2 deletions tools/depends/configure.ac
Expand Up @@ -476,7 +476,6 @@ AC_PATH_PROG([OBJDUMP_FOR_BUILD], [objdump], objdump, $PATH_FOR_BUILD)
AC_PATH_PROG([CC_FOR_BUILD],[gcc llvm-gcc $platform_cc], gcc, $PATH_FOR_BUILD)
AC_PATH_PROG([CXX_FOR_BUILD],[g++ llvm-g++ $platform_cxx], g++, $PATH_FOR_BUILD)

AC_CHECK_LIB([z], [main], has_zlib=1, AC_MSG_WARN("No zlib support in toolchain. Will build libz."); has_zlib=0)
AC_SEARCH_LIBS([iconv_open],iconv, link_iconv=$ac_cv_search_iconv_open, link_iconv=-liconv; AC_MSG_WARN("No iconv support in toolchain. Will build libiconv."); need_libiconv=1)
AC_TRY_LINK([#include <locale.h>],[struct lconv* test=localeconv();], has_localeconv=yes, AC_MSG_WARN("No localeconv support in toolchain. Using replacement."); has_localeconv=no)
AC_CHECK_LIB([crystax], [main], has_libcrystax=1, has_libcrystax=0)
Expand Down Expand Up @@ -613,7 +612,6 @@ AC_SUBST(platform_ldflags)
AC_SUBST(platform_includes)
AC_SUBST(platform_os)
AC_SUBST(build_os)
AC_SUBST(has_zlib)
AC_SUBST(link_iconv)
AC_SUBST(need_libiconv)
AC_SUBST(use_gplv3)
Expand Down
25 changes: 10 additions & 15 deletions tools/depends/target/Makefile
Expand Up @@ -15,7 +15,7 @@ DEPENDS = \
libamplayer libssh taglib libusb libnfs \
pythonmodule-pil pythonmodule-setuptools \
libxslt ffmpeg platform crossguid \
libdvdread libdvdnav libdvdcss
libdvdread libdvdnav libdvdcss zlib


FFMPEG_DEPENDS = gnutls
Expand Down Expand Up @@ -48,11 +48,6 @@ endif

DEPENDS := $(filter-out $(EXCLUDED_DEPENDS),$(DEPENDS))

ZLIB=
ifneq ($(HAS_ZLIB),1)
DEPENDS += zlib
ZLIB = zlib
endif

ICONV=
ifeq ($(NEED_LIBICONV),1)
Expand Down Expand Up @@ -87,20 +82,20 @@ librtmp: openssl
libmicrohttpd: gnutls libgcrypt libgpg-error
python27: expat gettext libxml2 sqlite3 openssl libffi
libcdio: $(ICONV)
libplist: libxml2 $(ZLIB)
libplist: libxml2 zlib
libbluray: $(ICONV) libxml2
libssh: libgcrypt openssl $(ZLIB)
mysql: openssl $(ZLIB)
libzip: $(ZLIB)
libpng: $(ZLIB)
openssl: $(ZLIB)
gnutls: nettle $(ZLIB)
libssh: libgcrypt openssl zlib
mysql: openssl zlib
libzip: zlib
libpng: zlib
openssl: zlib
gnutls: nettle zlib
nettle: gmp
pythonmodule-pil: $(ZLIB) libjpeg-turbo libpng freetype2 python27 pythonmodule-setuptools
pythonmodule-pil: zlib libjpeg-turbo libpng freetype2 python27 pythonmodule-setuptools
pythonmodule-setuptools: python27
libsdl2: $(LINUX_SYSTEM_LIBS)
libxslt: libgcrypt libxml2
ffmpeg: $(ICONV) $(ZLIB) bzip2 $(FFMPEG_DEPENDS)
ffmpeg: $(ICONV) zlib bzip2 $(FFMPEG_DEPENDS)
libcec: platform
crossguid: $(CROSSGUID_DEPS)
libdvdnav: libdvdread
Expand Down

0 comments on commit 53aea17

Please sign in to comment.