Commit 8ea2a889 authored by Sean McGovern's avatar Sean McGovern Committed by Jean-Baptiste Kempf

zlib: enable PIC on Solaris

Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
(cherry picked from commit 8f70026dbf9a1f673da6a5ddff8b6d2fdbc2d4f7)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d46a2568
......@@ -13,6 +13,10 @@ ZLIB_CONFIG_VARS=CHOST=$(HOST)
endif
endif
ifdef HAVE_SOLARIS
ZLIB_ECFLAGS = -fPIC -DPIC
endif
$(TARBALLS)/zlib-$(ZLIB_VERSION).tar.gz:
$(call download,$(ZLIB_URL))
......@@ -23,6 +27,6 @@ zlib: zlib-$(ZLIB_VERSION).tar.gz .sum-zlib
$(MOVE)
.zlib: zlib
cd $< && $(HOSTVARS) $(ZLIB_CONFIG_VARS) ./configure --prefix=$(PREFIX) --static
cd $< && $(HOSTVARS) $(ZLIB_CONFIG_VARS) CFLAGS="$(CFLAGS) $(ZLIB_ECFLAGS)" ./configure --prefix=$(PREFIX) --static
cd $< && $(MAKE) install
touch $@
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment