lz4: fix gcc2 build.

This commit is contained in:
Jerome Duval
2017-08-27 21:32:13 +02:00
parent 13e845cf89
commit 2008680af1
2 changed files with 15 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ core, typically reaching RAM speed limits on multi-core systems."
HOMEPAGE="https://github.com/lz4/lz4"
COPYRIGHT="2011-2014, Yann Collet"
LICENSE="BSD (2-clause)"
REVISION="1"
REVISION="2"
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
SOURCE_FILENAME="lz4-$portVersion.tar.gz"
CHECKSUM_SHA256="2ca482ea7a9bb103603108b5a7510b7592b90158c151ff50a28f1ca8389fccf6"
@@ -53,7 +53,8 @@ BUILD_PREREQUIRES="
BUILD()
{
make $jobArgs all
make -C lib $jobArgs
make -C programs $jobArgs lz4 lz4c
}
INSTALL()

View File

@@ -1,4 +1,4 @@
From e433ec7a0fd2b9b0e6cb116bd0d882dd56d3b552 Mon Sep 17 00:00:00 2001
From a5412e8c0b0223ac84aca3707f77b86b8b9bd89d Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 5 Aug 2014 17:14:07 +0000
Subject: haiku patch
@@ -18,7 +18,7 @@ index da485a1..42440b6 100644
.PHONY: install uninstall
diff --git a/lib/Makefile b/lib/Makefile
index 9abb699..94de790 100644
index 9abb699..f44d999 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -46,9 +46,7 @@ BUILD_STATIC:=yes
@@ -32,6 +32,15 @@ index 9abb699..94de790 100644
CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS)
FLAGS = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
@@ -96,7 +94,7 @@ ifneq (,$(filter Windows%,$(OS)))
@$(CC) $(FLAGS) -DLZ4_DLL_EXPORT=1 -shared $^ -o dll\$@.dll
dlltool -D dll\liblz4.dll -d dll\liblz4.def -l dll\liblz4.lib
else
- @$(CC) $(FLAGS) -shared $^ -fPIC -fvisibility=hidden $(SONAME_FLAGS) -o $@
+ @$(CC) $(FLAGS) -shared $^ -fPIC $(SONAME_FLAGS) -o $@
@echo creating versioned links
@ln -sf $@ liblz4.$(SHARED_EXT_MAJOR)
@ln -sf $@ liblz4.$(SHARED_EXT)
@@ -113,7 +111,7 @@ clean:
#-----------------------------------------------------------------------------
# make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets
@@ -66,5 +75,5 @@ index c7ef6d1..d1cabb0 100644
unlz4: lz4
ln -s lz4 unlz4
--
2.13.1
2.7.0