Add lz4-use-shlib.diff
OBS-URL: https://build.opensuse.org/package/show/Archiving/lz4?expand=0&rev=10
This commit is contained in:
parent
cd2a8694e9
commit
dc2fde8d3c
24
lz4-use-shlib.diff
Normal file
24
lz4-use-shlib.diff
Normal 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)
|
@ -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
|
||||
|
3
lz4.spec
3
lz4.spec
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user