forked from pool/laszip
501b2937e4
Find the new upstream version of laszip. Beware before accepting it. The soversion has changed from 6 to 3. Upstream will fix that with next version 4 where soversion will jump again to 7. With the downgrade, I've no idea about how end-users will got those packages, we certainly have to remove firstly any laszip binary build before building the new version 3. - Packaging : + Remove -test package and %check section, tests are no more autoincluded by upstream + Adjust FLAGS laszip need -ldl, and be sure %optflags are used + Create new liblas_api package + Fix list of file + Use %license if possible + move to cmake build following upstream + Added 0bf1c60.patch fixing .so loading - Update to 3.1.1 version. + sover change from 6 to 3 + 3.1.0 introduce support for LAZ 1.4 + New "dll" API replace previous API + See all changes in Changelog OBS-URL: https://build.opensuse.org/request/show/570195 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/laszip?expand=0&rev=6
28 lines
859 B
Diff
28 lines
859 B
Diff
From d781bf50da33d1789cce3a17777d91e279d0a289 Mon Sep 17 00:00:00 2001
|
|
From: Pete Gadomski <pete.gadomski@gmail.com>
|
|
Date: Thu, 19 Oct 2017 17:06:55 +0000
|
|
Subject: [PATCH] Load .so dll on non-apple
|
|
|
|
This platform checking is...dubious...but this was the Minimum Required
|
|
To Work on a debian system.
|
|
---
|
|
dll/laszip_api.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/dll/laszip_api.c b/dll/laszip_api.c
|
|
index 007e080..83c09bf 100644
|
|
--- a/dll/laszip_api.c
|
|
+++ b/dll/laszip_api.c
|
|
@@ -958,8 +958,10 @@ laszip_I32 laszip_load_dll()
|
|
// Load DLL file
|
|
#ifdef _WIN32
|
|
laszip_HINSTANCE = LoadLibrary(TEXT("LASzip.dll"));
|
|
-#else
|
|
+#elif __APPLE__
|
|
laszip_HINSTANCE = LoadLibrary("liblaszip.dylib", RTLD_NOW);
|
|
+#else
|
|
+ laszip_HINSTANCE = LoadLibrary("liblaszip.so", RTLD_NOW);
|
|
#endif
|
|
if (laszip_HINSTANCE == NULL) {
|
|
return 1;
|