From efcb3933433838b71f3a4a53ec1ac6d899aaec0b Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 3 May 2020 21:02:51 +0000 Subject: Make the new book git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11831 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/flex.xml | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'chapter05/flex.xml') diff --git a/chapter05/flex.xml b/chapter05/flex.xml index 5e1afa194..5761e82e5 100644 --- a/chapter05/flex.xml +++ b/chapter05/flex.xml @@ -45,19 +45,37 @@ Prepare Flex for compilation: -./configure --prefix=/tools +./configure --prefix=/usr \ + --host=$LFS_TGT \ + --build=$(build-aux/config.guess) \ + --disable-bootstrap \ + --docdir=/usr/share/doc/flex-&flex-version; + + + The meaning of the new configure option: + + + --disable-bootstrap + + Normally, building flex is done in two stages. A first + programs, which is used to generate the source of a second one, + which is then compiled. When using cross-compilation, the first + program is generated on the build systemd. However, due to a bug + in configure, the presence of some funciton is tested only on the + host system. If this function is not found on the build system, the + build fails. This can be prevented by disabling the two stage + build. + + + Compile the package: make - To test the results, issue: - -make check - Install the package: -make install +make DESTDIR=$LFS install -- cgit v1.2.3-54-g00ecf