zlib: export Haiku versionning symbols.

This commit is contained in:
Adrien Destugues
2016-08-28 19:52:22 +02:00
committed by Adrien Destugues
parent b162f3b98c
commit a42c514411
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
From faf76068355cc9169c3b3cc6564a352218ee47d1 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sun, 28 Aug 2016 18:33:07 +0200
Subject: zlib: export Haiku shared object symbols
zlib by default hides all symbols starting with _ from its ABI, which
also hides symbols used for ABI versionning on Haiku. This makes
runtime_loader complain that it can't identify the version used.
diff --git a/zlib.map b/zlib.map
index 55c6647..0a6e90e 100644
--- a/zlib.map
+++ b/zlib.map
@@ -6,6 +6,7 @@ ZLIB_1.2.0 {
inflateBackEnd;
inflateBackInit_;
inflateCopy;
+ _gSharedObjectHaiku*;
local:
deflate_copyright;
inflate_copyright;
--
2.7.0

View File

@@ -16,6 +16,7 @@ LICENSE="Zlib"
REVISION="4"
SOURCE_URI="http://zlib.net/zlib-1.2.8.tar.xz"
CHECKSUM_SHA256="831df043236df8e9a7667b9e3bb37e1fcb1220a0f163b6de2626774b9590d057"
PATCHES="zlib-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64 arm ?ppc"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"