Get rid of CT_LIBC_FILE, remove useless CT_MakeAbsolutePath.
CT_LIBC_FILE:
- that one was not easy, as it had sneaked into CT_ExtractAndPatch
- which in turn made CT_ExtractAndPatch have references to C library addons
- which in turn relieved the C library _extract functions from doing their own job
- which in turn imposed some nasty tricks in CT_ExtractAndPatch
- which in turn made life easier for the DUMA _get and _extract functions
- which unveiled some bizare behavior for pushd and popd:
- if using smthg ike: 'pushd foo |bar':
- the directory is *neither* changed
- *nor* is it pushed onto the stack
- which made popd fail
CT_MakeAbsolutePath:
- used only to make CT_LOCAL_TARBALLS_DIR canonical
- which is ((almost) useless:
- hopefully, the user entered a full path already
- if it's not the case, too bad...
/trunk/scripts/build/debug/200-duma.sh | 5 1 4 0 +--
/trunk/scripts/build/libc/glibc.sh | 61 32 29 0 +++++++++++++++++---------------
/trunk/scripts/build/libc/uClibc.sh | 16 10 6 0 +++++---
/trunk/scripts/build/libc/eglibc.sh | 48 26 22 0 ++++++++++++++-----------
/trunk/scripts/crosstool.sh | 8 0 8 0 ----
/trunk/scripts/functions | 77 15 62 0 ++++++++--------------------------------
6 files changed, 84 insertions(+), 131 deletions(-)
1 # This file adds the functions to build the GMP library
2 # Copyright 2008 Yann E. MORIN
3 # Licensed under the GPL v2. See COPYING in the root of this package
6 do_gmp_extract() { :; }
10 # Overide functions depending on configuration
11 if [ "${CT_GMP_MPFR}" = "y" ]; then
15 CT_GetFile "gmp-${CT_GMP_VERSION}" {ftp,http}://{ftp.sunet.se/pub,ftp.gnu.org}/gnu/gmp
20 CT_ExtractAndPatch "gmp-${CT_GMP_VERSION}"
24 mkdir -p "${CT_BUILD_DIR}/build-gmp"
25 cd "${CT_BUILD_DIR}/build-gmp"
27 CT_DoStep INFO "Installing GMP"
29 CT_DoLog EXTRA "Configuring GMP"
30 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
32 "${CT_SRC_DIR}/gmp-${CT_GMP_VERSION}/configure" \
35 --prefix="${CT_PREFIX_DIR}" \
36 --disable-shared --enable-static \
37 --enable-fft --enable-mpbsd
39 CT_DoLog EXTRA "Building GMP"
40 CT_DoExecLog ALL make ${PARALLELMFLAGS}
42 if [ "${CT_GMP_CHECK}" = "y" ]; then
43 CT_DoLog EXTRA "Checking GMP"
44 CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
47 CT_DoLog EXTRA "Installing GMP"
48 CT_DoExecLog ALL make install
53 if [ "${CT_GMP_MPFR_TARGET}" = "y" ]; then
56 mkdir -p "${CT_BUILD_DIR}/build-gmp-target"
57 cd "${CT_BUILD_DIR}/build-gmp-target"
59 CT_DoStep INFO "Installing GMP for the target"
61 CT_DoLog EXTRA "Configuring GMP"
62 CFLAGS="${CT_CFLAGS_FOR_TARGET}" \
64 "${CT_SRC_DIR}/gmp-${CT_GMP_VERSION}/configure" \
68 --disable-shared --enable-static \
69 --enable-fft --enable-mpbsd
71 CT_DoLog EXTRA "Building GMP"
72 CT_DoExecLog ALL make ${PARALLELMFLAGS}
74 # Not possible to check MPFR while X-compiling
76 CT_DoLog EXTRA "Installing GMP"
77 CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install
82 fi # CT_GMP_MPFR_TARGET == y