[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #63043] cmake build rule uses host liblzma.so and other host librar
From: |
Mohammad Akhlaghi |
Subject: |
[bug #63043] cmake build rule uses host liblzma.so and other host libraries |
Date: |
Sun, 11 Sep 2022 16:54:36 -0400 (EDT) |
Follow-up Comment #4, bug #63043 (project reproduce):
I just tried building CMake by removing all those '--system-*' options, and
instead completely disabled any system libs by adding '--no-system-libs'
instead.
In the build commands, I noticed that the build commands contain
'-DLZMA_API_STATIC' option, and in the end, and in the full log, I couldn't
find any '/usr/lib/*.so' in any of the linking commands!
In the end, I could also confirm that it had done a static build to its
internal libz, liblzma, libcurl and libbz2 (its not in the libraries it now
links to, see the P.S.).
Can you try this on your CentOS 7?
P.S. List of libraries that CMake links with when it is built with
'--no-system-libs':
$ ldd .local/bin/cmake
libgcc_s.so.1 => /BDIR/software/installed/lib/libgcc_s.so.1
(0x00007f5fa675f000)
libiconv.so.2 => /BDIR/software/installed/lib/libiconv.so.2
(0x00007f5fa6919000)
libssl.so.3 => /BDIR/software/installed/lib/libssl.so.3
(0x00007f5fa6868000)
libcrypto.so.3 => /BDIR/software/installed/lib/libcrypto.so.3
(0x00007f5fa6200000)
libstdc++.so.6 => /BDIR/software/installed/lib/libstdc++.so.6
(0x00007f5fa5e00000)
libz.so.1 => /BDIR/software/installed/lib/libz.so.1 (0x00007f5fa6742000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f5fa6780000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f5fa5c19000)
linux-vdso.so.1 (0x00007ffdc496b000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2
(0x00007f5fa7576000)
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?63043>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/
- [bug #63043] cmake build rule uses host liblzma.so and other host libraries, Boud Roukema, 2022/09/10
- [bug #63043] cmake build rule uses host liblzma.so and other host libraries, Mohammad Akhlaghi, 2022/09/10
- [bug #63043] cmake build rule uses host liblzma.so and other host libraries, Boud Roukema, 2022/09/10
- [bug #63043] cmake build rule uses host liblzma.so and other host libraries, Mohammad Akhlaghi, 2022/09/11
- [bug #63043] cmake build rule uses host liblzma.so and other host libraries,
Mohammad Akhlaghi <=
- [bug #63043] cmake build rule uses host liblzma.so and other host libraries, Mohammad Akhlaghi, 2022/09/11
- [bug #63043] cmake build rule uses host liblzma.so and other host libraries, Boud Roukema, 2022/09/13
- [bug #63043] cmake build rule uses host liblzma.so and other host libraries, Mohammad Akhlaghi, 2022/09/15
- [bug #63043] cmake build rule uses host liblzma.so and other host libraries, Boud Roukema, 2022/09/20