diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-04-10 23:43:08 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-04-10 23:43:08 +0200 |
commit | 5b663e2aae05cab9fb519a2faba66f85f11db161 (patch) | |
tree | 584e104adb8c4c0ac3917e68b8d12618e1f159d9 | |
parent | 31fa64bc60ca6ac8cfd117f6e4f48dfe11abbfa1 (diff) | |
download | crosstool-ng-5b663e2aae05cab9fb519a2faba66f85f11db161.tar.gz crosstool-ng-5b663e2aae05cab9fb519a2faba66f85f11db161.tar.bz2 crosstool-ng-5b663e2aae05cab9fb519a2faba66f85f11db161.zip |
complibs: build static libraries
-rw-r--r-- | scripts/build/cc/gcc.sh | 2 | ||||
-rw-r--r-- | scripts/build/companion_libs/cloog.sh | 5 | ||||
-rw-r--r-- | scripts/build/companion_libs/gmp.sh | 4 | ||||
-rw-r--r-- | scripts/build/companion_libs/mpc.sh | 4 | ||||
-rw-r--r-- | scripts/build/companion_libs/mpfr.sh | 4 | ||||
-rw-r--r-- | scripts/build/companion_libs/ppl.sh | 4 |
6 files changed, 13 insertions, 10 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index f4cf7cb1..6dc97e44 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -165,6 +165,7 @@ do_cc_core() { # Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532) CC_FOR_BUILD="${CT_BUILD}-gcc" \ CFLAGS="${CT_CFLAGS_FOR_HOST}" \ + LDFLAGS="-lstdc++" \ CT_DoExecLog ALL \ "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/configure" \ --build=${CT_BUILD} \ @@ -330,6 +331,7 @@ do_cc() { # embedded systems don't really need message catalogs... CC_FOR_BUILD="${CT_BUILD}-gcc" \ CFLAGS="${CT_CFLAGS_FOR_HOST}" \ + LDFLAGS="-lstdc++" \ CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}" \ CXXFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}" \ LDFLAGS_FOR_TARGET="${CT_TARGET_LDFLAGS}" \ diff --git a/scripts/build/companion_libs/cloog.sh b/scripts/build/companion_libs/cloog.sh index d73299c1..6a58a2da 100644 --- a/scripts/build/companion_libs/cloog.sh +++ b/scripts/build/companion_libs/cloog.sh @@ -50,6 +50,7 @@ do_cloog() { CT_DoLog EXTRA "Configuring CLooG/ppl" CFLAGS="${CT_CFLAGS_FOR_HOST}" \ + LDFLAGS='-lstdc++' \ CT_DoExecLog ALL \ "${CT_SRC_DIR}/cloog-ppl${_t}/configure" \ --build=${CT_BUILD} \ @@ -57,8 +58,8 @@ do_cloog() { --prefix="${CT_PREFIX_DIR}" \ --with-gmp="${CT_PREFIX_DIR}" \ --with-ppl="${CT_PREFIX_DIR}" \ - --enable-shared \ - --disable-static \ + --disable-shared \ + --enable-static \ --with-bits=gmp CT_DoLog EXTRA "Building CLooG/ppl" diff --git a/scripts/build/companion_libs/gmp.sh b/scripts/build/companion_libs/gmp.sh index ad6a325e..35933d74 100644 --- a/scripts/build/companion_libs/gmp.sh +++ b/scripts/build/companion_libs/gmp.sh @@ -38,8 +38,8 @@ do_gmp() { --build=${CT_BUILD} \ --host=${CT_HOST} \ --prefix="${CT_PREFIX_DIR}" \ - --enable-shared \ - --disable-static \ + --disable-shared \ + --enable-static \ --enable-fft \ --enable-mpbsd \ --enable-cxx diff --git a/scripts/build/companion_libs/mpc.sh b/scripts/build/companion_libs/mpc.sh index f5b69580..793ad5a8 100644 --- a/scripts/build/companion_libs/mpc.sh +++ b/scripts/build/companion_libs/mpc.sh @@ -37,8 +37,8 @@ do_mpc() { --prefix="${CT_PREFIX_DIR}" \ --with-gmp="${CT_PREFIX_DIR}" \ --with-mpfr="${CT_PREFIX_DIR}" \ - --enable-shared \ - --disable-static \ + --disable-shared \ + --enable-static CT_DoLog EXTRA "Building MPC" CT_DoExecLog ALL make ${PARALLELMFLAGS} diff --git a/scripts/build/companion_libs/mpfr.sh b/scripts/build/companion_libs/mpfr.sh index a2c7f71f..87580c34 100644 --- a/scripts/build/companion_libs/mpfr.sh +++ b/scripts/build/companion_libs/mpfr.sh @@ -90,8 +90,8 @@ do_mpfr() { --host=${CT_HOST} \ --prefix="${CT_PREFIX_DIR}" \ ${mpfr_opt} \ - --enable-shared \ - --disable-static \ + --disable-shared \ + --enable-static \ --with-gmp="${CT_PREFIX_DIR}" CT_DoLog EXTRA "Building MPFR" diff --git a/scripts/build/companion_libs/ppl.sh b/scripts/build/companion_libs/ppl.sh index 3b1a80f2..41332693 100644 --- a/scripts/build/companion_libs/ppl.sh +++ b/scripts/build/companion_libs/ppl.sh @@ -40,8 +40,8 @@ do_ppl() { --prefix="${CT_PREFIX_DIR}" \ --with-libgmp-prefix="${CT_PREFIX_DIR}" \ --with-libgmpxx-prefix="${CT_PREFIX_DIR}" \ - --enable-shared \ - --disable-static \ + --disable-shared \ + --enable-static \ --disable-debugging \ --disable-assertions \ --disable-ppl_lcdd \ |