SHA256
1
0
forked from pool/lz4

Add lz4-use-shlib.diff

OBS-URL: https://build.opensuse.org/package/show/Archiving/lz4?expand=0&rev=10
This commit is contained in:
Jan Engelhardt 2014-07-16 14:42:40 +00:00 committed by Git OBS Bridge
parent cd2a8694e9
commit dc2fde8d3c
3 changed files with 27 additions and 1 deletions

24
lz4-use-shlib.diff Normal file
View File

@ -0,0 +1,24 @@
---
programs/Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: trunk/programs/Makefile
===================================================================
--- trunk.orig/programs/Makefile
+++ trunk/programs/Makefile
@@ -69,11 +69,11 @@ default: lz4 lz4c
all: lz4 lz4c lz4c32 fullbench fullbench32 fuzzer fuzzer32 datagen
-lz4: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c
- $(CC) $(FLAGS) -DDISABLE_LZ4C_LEGACY_OPTIONS $^ -o $@$(EXT)
+lz4: bench.c xxhash.c lz4io.c lz4cli.c
+ $(CC) $(FLAGS) -DDISABLE_LZ4C_LEGACY_OPTIONS $^ -o $@$(EXT) -L${LZ4DIR} -llz4
-lz4c : $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c
- $(CC) $(FLAGS) $^ -o $@$(EXT)
+lz4c: bench.c xxhash.c lz4io.c lz4cli.c
+ $(CC) $(FLAGS) $^ -o $@$(EXT) -L${LZ4DIR} -llz4
lz4c32: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c
$(CC) -m32 $(FLAGS) $^ -o $@$(EXT)

View File

@ -5,6 +5,7 @@ Wed Jul 16 14:34:44 UTC 2014 - jengelh@inai.de
Makefile contents; it's still odd to see the 1.4 Windows release)
* Provide LZ4 as a shared library
- Remove lz4-automake.diff (no longer deemed necessary)
- Add lz4-use-shlib.diff
-------------------------------------------------------------------
Mon Nov 25 23:07:48 UTC 2013 - dsterba@suse.com

View File

@ -29,6 +29,7 @@ Url: http://code.google.com/p/lz4/
#SVN-Clone: http://lz4.googlecode.com/svn/trunk
# Project offers no source tarballs.
Source: %name-svn119.tar.lz
Patch1: lz4-use-shlib.diff
Patch2: lz4-killdate.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
@ -72,7 +73,7 @@ applications that want to make use of liblz4.
%prep
%setup -qn trunk
%patch -P 2 -p1
%patch -P 1 -P 2 -p1
%build
make %{?_smp_mflags} CFLAGS="%optflags"