[vlc-devel] [PATCH 3/3] zlib: enable PIC on Solaris
Sean McGovern
gseanmcg at gmail.com
Tue Jun 24 03:08:16 CEST 2014
---
contrib/src/zlib/rules.mak | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/contrib/src/zlib/rules.mak b/contrib/src/zlib/rules.mak
index b198aee..d5f1e9e 100644
--- a/contrib/src/zlib/rules.mak
+++ b/contrib/src/zlib/rules.mak
@@ -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 $@
--
1.7.9.2
More information about the vlc-devel
mailing list