Changeset 8558044 for introduction/important
- Timestamp:
- 09/06/2021 05:42:49 PM (3 years ago)
- Branches:
- 11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- fef4473
- Parents:
- 7999839
- Location:
- introduction/important
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
introduction/important/building-notes.xml
r7999839 r8558044 460 460 <para>If you did not strip programs and libraries in LFS, 461 461 the following will probably make your system unusable. To avoid that, 462 run the instructions at <ulink url="&lfs-root;/chapter08/strippingagain.html"/> 463 instead. After the critical files are stripped using those instructions, 462 run the instructions at <ulink url="&lfs-root;/chapter08/strippingagain.html"/> 463 instead. After the critical files are stripped using those instructions, 464 464 the instructions below can be run any time new packages are installed. 465 465 </para> -
introduction/important/la-files.xml
r7999839 r8558044 30 30 this tool are quite dated. It was intended to manage libraries on 31 31 systems with less advanced capabilities than a modern Linux system. 32 32 33 33 </para> 34 34 … … 45 45 46 46 </para> 47 47 48 48 <para> 49 49 … … 53 53 in the libraries. When building a package that uses libtool, the 54 54 process automatically looks for these files. If a package is updated 55 and no longer uses the .la file, then the build process can break. 56 55 and no longer uses the .la file, then the build process can break. 56 57 57 </para> 58 58 … … 63 63 function, lt_dlopen, to load libraries as needed during execution and 64 64 resolve their dependencies at run time. In this case, the .la files 65 should remain. 66 65 should remain. 66 67 67 </para> 68 68 … … 71 71 The script below, removes all unneeded .la files and saves them in a 72 72 directory, /var/local/la-files by default, not in the normal library 73 path. It also searches all pkg-config files (.pc) for embedded 74 references to .la files and fixes them to be conventional library 75 references needed when an application or library is built. It 73 path. It also searches all pkg-config files (.pc) for embedded 74 references to .la files and fixes them to be conventional library 75 references needed when an application or library is built. It 76 76 can be run as needed to clean up the directories that may be causing 77 77 problems. 78 78 79 79 </para> 80 80 81 81 <screen role="root"><userinput>cat > /usr/sbin/remove-la-files.sh << "EOF" 82 82 <literal>#!/bin/bash … … 109 109 # Fix any .pc files that may have .la references 110 110 111 STD_PC_PATH='/usr/lib/pkgconfig 112 /usr/share/pkgconfig 113 /usr/local/lib/pkgconfig 111 STD_PC_PATH='/usr/lib/pkgconfig 112 /usr/share/pkgconfig 113 /usr/local/lib/pkgconfig 114 114 /usr/local/share/pkgconfig' 115 115 … … 129 129 basename=$(basename $word ) 130 130 libref=$(echo $basename|sed -e 's/^lib/-l/' -e 's/\.la$//') 131 131 132 132 # Fix the .pc file 133 133 sed -i "s:$word:$libref:" $pc
Note:
See TracChangeset
for help on using the changeset viewer.