Index: BOOK/cross-tools/common/ppl.xml
===================================================================
--- BOOK/cross-tools/common/ppl.xml (revision 00d5d8eb2c1b6b1091c54c3ed20240721b1e2b05)
+++ BOOK/cross-tools/common/ppl.xml (revision 36a0aca22e7e3dc7d68850a5d4d7f8a61ef5ade5)
@@ -29,5 +29,6 @@
./configure --prefix=/cross-tools --enable-shared \
--enable-interfaces="c,cxx" --disable-optimization \
- --with-gmp=/cross-tools
+ --with-gmp-include=/cross-tools/include \
+ --with-gmp-lib=/cross-tools/lib
Compile the package:
Index: BOOK/temp-system/64/ppl.xml
===================================================================
--- BOOK/temp-system/64/ppl.xml (revision 00d5d8eb2c1b6b1091c54c3ed20240721b1e2b05)
+++ BOOK/temp-system/64/ppl.xml (revision 36a0aca22e7e3dc7d68850a5d4d7f8a61ef5ade5)
@@ -29,14 +29,6 @@
CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
--build=${CLFS_HOST} --host=${CLFS_TARGET} \
- --enable-interfaces="c,cxx" --enable-shared \
- --disable-optimization --with-gmp=/tools
-
-
-
-
+ --enable-interfaces="c,cxx" --enable-shared --disable-optimization \
+ --with-gmp-include=/tools/include --with-gmp-lib=/tools/lib
-
- When PPL is cross-compiled, it does not check whether
- GMP was compiled with support for exceptions, and simply assumes it was not.
- This assumption is incorrect, so we will fix that:
-
-echo '#define PPL_GMP_SUPPORTS_EXCEPTIONS 1' >> confdefs.h
+ --with-gmp-include=/tools/include --with-gmp-lib=/tools/lib
Compile the package:
Index: BOOK/temp-system/multilib/ppl.xml
===================================================================
--- BOOK/temp-system/multilib/ppl.xml (revision 00d5d8eb2c1b6b1091c54c3ed20240721b1e2b05)
+++ BOOK/temp-system/multilib/ppl.xml (revision 36a0aca22e7e3dc7d68850a5d4d7f8a61ef5ade5)
@@ -29,14 +29,7 @@
CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
--build=${CLFS_HOST} --host=${CLFS_TARGET} \
- --enable-interfaces="c,cxx" --libdir=/tools/lib64 --enable-shared \
- --disable-optimization --with-gmp=/tools
-
-
-
-
+ --enable-interfaces="c,cxx" --libdir=/tools/lib64 \
+ --enable-shared --disable-optimization \
+ --with-gmp-include=/tools/include --with-gmp-lib=/tools/lib