[lfs] 02/02: Lz4-ML: Add LIBVER_SRC as an argument.

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch multilib
in repository lfs.

commit 1f3ca067974712af2b3db4d1352affdcb6ab7ba2
Author: Zeckmathederg <[email protected]>
AuthorDate: Fri Mar 6 20:25:18 2026 -0700

    Lz4-ML: Add LIBVER_SRC as an argument.
    
    If LIBDIR is set to something other than `../lib/lz4.h`, make will
    complain without error that $LIBDIR/lz4.h doesn't exist. And it is
    correct. The problem though is that in the source tree, it has
    lib/lz4.h as is. LIBVER_SRC is set to $LIBDIR/lz4.h, and LIBDIR normally
    is set to ../lib (in programs/Makefile, so $PROJECT/lib).
    
    This normally doesn't cause an issue unless LIBDIR is different, and in
    which case it trips things up. Thus, LIBVER_SRC must be overriden for
    multilib to prevent these warnings to set it back to the canonical path
    of lz4.h. lz4.h does not get installed in $LIBDIR so this change
    basically doesn't affect the installation beyond getting rid of some
    warnings that may cause users to panic.
---
 chapter08/lz4.xml | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/chapter08/lz4.xml b/chapter08/lz4.xml
index 04a198d36..5a4b5ce7d 100644
--- a/chapter08/lz4.xml
+++ b/chapter08/lz4.xml
@@ -76,12 +76,12 @@
 
     <para>Install the package:</para>
 
-<screen><userinput remap="install">make BUILD_STATIC=no   \
-     PREFIX=/usr       \
-     LIBDIR=/usr/lib32 \
+<screen><userinput remap="install">make BUILD_STATIC=no         \
+     PREFIX=/usr             \
+     LIBDIR=/usr/lib32       \
+     LIBVER_SRC=../lib/lz4.h \
      DESTDIR=$(pwd)/m32 install
-cp -a m32/usr/lib32/* /usr/lib32/
-</userinput></screen>
+cp -a m32/usr/lib32/* /usr/lib32/</userinput></screen>
 
   </sect2><!-- m32 -->
 
@@ -101,12 +101,12 @@ cp -a m32/usr/lib32/* /usr/lib32/
 
     <para>Install the package:</para>
 
-<screen><userinput remap="install">make BUILD_STATIC=no    \
-     PREFIX=/usr        \
-     LIBDIR=/usr/libx32 \
+<screen><userinput remap="install">make BUILD_STATIC=no         \
+     PREFIX=/usr             \
+     LIBDIR=/usr/libx32      \
+     LIBVER_SRC=../lib/lz4.h \
      DESTDIR=$(pwd)/mx32 install
-cp -a mx32/usr/libx32/* /usr/libx32/
-</userinput></screen>
+cp -a mx32/usr/libx32/* /usr/libx32/</userinput></screen>
 
   </sect2><!-- mx32 -->
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.