lzip-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building shared library for lzlib


From: M S
Subject: Building shared library for lzlib
Date: Mon, 14 Oct 2024 06:24:06 +0000

Hi,

I’m building on macOS Sequoia 15.0.1 and there is a problem building the shared 
object library.  It’s failrly simple to fix, but i suspect it may be an issue 
on other operating systems.  Here’s the diff.

(base) [unixwzrd@xanax: lzlib-1.14]$ diff Makefile.dist.in Makefile.macos.in
29c29
<       $(CC) $(CFLAGS) $(LDFLAGS) -fpic -fPIC -shared 
-Wl,--soname=lib$(libname).so.$(soversion) -o $@ $<
---
>       $(CC) $(CFLAGS) $(LDFLAGS) -fpic -fPIC -shared -o $@ $<


Removing the whole -Wl,--soname=lib$(libname).so.$(soversion) does the trick. 
Th elinker doesn’t recognize the flag —soname=, also the library it wants to 
link with is already there with the $< and the library name in the linker flag 
“liblz.so.1.14”, it should be lzlib.so.1.14 if anything, however that will 
cause problems too as it will be trying ti link itself with itself in 
/usr/local/lib after it’s been installed on a rebuild.  Eliminating that 
altogether fixes it.

Let me know if you have any questions.

Best,

Mike

---
Michael Sullivan
Distributed Thinking Systems LLC <https://unixwzrd.ai/>                   
unixwzrd@unixwzrd.ai
LinkedIn: https://www.linkedin.com/in/unixwzrd/
GitHub: https://github.com/unixwzrd
Phone: +1-662-202-7716


reply via email to

[Prev in Thread] Current Thread [Next in Thread]