[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add libraries to Makefiles.
From: |
Samuel Thibault |
Subject: |
Re: [PATCH] Add libraries to Makefiles. |
Date: |
Wed, 18 Jan 2023 11:54:40 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Svante Signell, le mer. 18 janv. 2023 11:34:32 +0100, a ecrit:
> On Wed, 2023-01-18 at 11:10 +0100, Samuel Thibault wrote:
> >
> > That's not enough information: I'm asking about your cross-toolchain.
> >
> > Do you actually get e.g. libstore/libstore.so for instance?
> > If so, run objdump -x on it and check that libz is indeed in NEEDED.
> > That's what is supposed to save having to add -lz everywhere.
>
> /tools/lib/libstore.so
> /tools/lib/libstore.so.0.3
> objdump -x /tools/lib/libstore.so.0.3 | less
> Dynamic Section:
> NEEDED libblkid.so.1
> NEEDED libuuid.so.1
> NEEDED libz.so
> NEEDED libncursesw.so.6
> NEEDED libtinfow.so.6
> NEEDED libshouldbeinlibc.so.0.3
> NEEDED libpthread.so.0.3
> NEEDED libc.so.0.3
> NEEDED libmachuser.so.1
> NEEDED libhurduser.so.0.3
> SONAME libstore.so.0.3
Then you need to check that the linking of e.g. storeio does use the
shared library and not the static library. For instance you can re-run
the corresponding linking command and add -Wl,-verbose to check in the
verbose output which precise libstore file it takes.
Samuel
- [PATCH] Add libraries to Makefiles., Svante Signell, 2023/01/17
- Re: [PATCH] Add libraries to Makefiles., Samuel Thibault, 2023/01/17
- Re: [PATCH] Add libraries to Makefiles., Svante Signell, 2023/01/18
- Re: [PATCH] Add libraries to Makefiles., Samuel Thibault, 2023/01/18
- Re: [PATCH] Add libraries to Makefiles., Svante Signell, 2023/01/18
- Re: [PATCH] Add libraries to Makefiles.,
Samuel Thibault <=
- Re: [PATCH] Add libraries to Makefiles., Svante Signell, 2023/01/18
- Re: [PATCH] Add libraries to Makefiles., Samuel Thibault, 2023/01/18
- Re: [PATCH] Add libraries to Makefiles., Svante Signell, 2023/01/20