use dynamic lib
authorAntonio Valentino <antonio.valentino@tiscali.it>
Fri, 23 Aug 2013 10:19:58 +0000 (12:19 +0200)
committerAntonio Valentino <antonio.valentino@tiscali.it>
Tue, 20 Dec 2022 21:15:54 +0000 (21:15 +0000)
The setup script detects the static version of the lzo2 library instead of
the dynamic version (that is now located in a multi-arch path).
This causes a link error due to not relacable code (missing -fPIC flag
at compile time)

Now the dynamic version of the lzo2 library is located in a multiarch path so
sthe setup script

Gbp-Pq: Name 0001-use-dynamic-lib.patch

setup.py

index ab8f8e30fff5b733b1f2f3ac6b0b0ae5f69e9ce1..38797af3267092dcee2dfc37e6c49a9bcb528b50 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -422,7 +422,7 @@ if __name__ == "__main__":
 
     class PosixPackage(BasePackage):
         _library_prefixes = ["lib"]
-        _library_suffixes = [".so", ".dylib", ".a"]
+        _library_suffixes = [".so", ".dylib"]  # , ".a"]
         _runtime_prefixes = _library_prefixes
         _runtime_suffixes = [".so", ".dylib"]
         _component_dirs = ["include", "lib", "lib64"]