aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-lz4/system-libs.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-02 01:14:35 -0300
committerKevin Daudt <kdaudt@alpinelinux.org>2019-06-02 20:41:55 +0000
commitd8ad38c42754e52a43e6b2e339517d6381a2a9ef (patch)
tree756b3338bef243c932574642c81b00093c25b7dc /community/py-lz4/system-libs.patch
parentcadfcf621acf96576d9b11518d6df10696fcd52b (diff)
downloadaports-d8ad38c42754e52a43e6b2e339517d6381a2a9ef.tar.bz2
aports-d8ad38c42754e52a43e6b2e339517d6381a2a9ef.tar.xz
community/py-lz4: upgrade to 2.1.9
Closes GH-8379
Diffstat (limited to 'community/py-lz4/system-libs.patch')
-rw-r--r--community/py-lz4/system-libs.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/community/py-lz4/system-libs.patch b/community/py-lz4/system-libs.patch
new file mode 100644
index 0000000000..e746ac0241
--- /dev/null
+++ b/community/py-lz4/system-libs.patch
@@ -0,0 +1,26 @@
+diff --git a/setup.py b/setup.py
+index 9fa3131..ad2f6a3 100644
+--- a/setup.py
++++ b/setup.py
+@@ -10,8 +10,8 @@ PY3C_REQUIRED_VERSION = '>= 1.0'
+
+ # Check to see if we have a lz4 and py3c libraries installed on the system, and
+ # of suitable versions, and use if so. If not, we'll use the bundled libraries.
+-liblz4_found = False
++liblz4_found = True
+ py3c_found = False
+ try:
+ from pkgconfig import installed as pkgconfig_installed
+ from pkgconfig import cflags as pkgconfig_cflags
+@@ -95,9 +95,7 @@ if compiler == 'msvc':
+ extra_compile_args = ['/Ot', '/Wall', '/wd4711', '/wd4820']
+ elif compiler in ('unix', 'mingw32'):
+ if liblz4_found:
+- extra_link_args.append(pkgconfig_libs('liblz4'))
+- if pkgconfig_cflags('liblz4'):
+- extra_compile_args.append(pkgconfig_cflags('liblz4'))
++ extra_link_args.append('-llz4')
+ else:
+ extra_compile_args = [
+ '-O3',
+