From a163e52b0a679ab954700f82f542280ae7556dad Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz (arab, vxp) Date: Jul 11 2016 19:51:45 +0000 Subject: Build perk{,_host} w/ pkg.build. --- diff --git a/001.binutils_host.build b/001.binutils_host.build deleted file mode 120000 index 52bb82e..0000000 --- a/001.binutils_host.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/001.perk_host.build b/001.perk_host.build new file mode 120000 index 0000000..52bb82e --- /dev/null +++ b/001.perk_host.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/002.binutils_host.build b/002.binutils_host.build new file mode 120000 index 0000000..52bb82e --- /dev/null +++ b/002.binutils_host.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/002.gcc.stage1.build b/002.gcc.stage1.build deleted file mode 120000 index c3b435d..0000000 --- a/002.gcc.stage1.build +++ /dev/null @@ -1 +0,0 @@ -008.gcc.full.build \ No newline at end of file diff --git a/003.gcc.stage1.build b/003.gcc.stage1.build new file mode 120000 index 0000000..f1fa8b2 --- /dev/null +++ b/003.gcc.stage1.build @@ -0,0 +1 @@ +009.gcc.full.build \ No newline at end of file diff --git a/003.psxstub.build b/003.psxstub.build deleted file mode 120000 index 52bb82e..0000000 --- a/003.psxstub.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/003.psxstub.vars b/003.psxstub.vars deleted file mode 100644 index d9c467d..0000000 --- a/003.psxstub.vars +++ /dev/null @@ -1,20 +0,0 @@ -# -# . ./build.vars and set -o errexit -o noglob are assumed. -# - -pkg_psxstub_finish() { - if ! is_build_script_done install; then - if [ "${TARGET}" = i686-nt32-midipix ] \ - || [ "${TARGET}" = x86_64-nt64-midipix ]; then - cd psxstub; - make ${MAKEFLAGS} DESTDIR=${PKG_PREFIX} TARGET=${TARGET} install; - if [ -e ${PKG_PREFIX}/lib/libpsxscl.a ]; then - echo rm -f -- ${PKG_PREFIX}/lib/libpsxscl.a; - rm -f -- ${PKG_PREFIX}/lib/libpsxscl.a; - fi; - set_build_script_done install finish; - fi; - fi; -}; - -# vim:filetype=sh diff --git a/004.musl.no-complex.build b/004.musl.no-complex.build deleted file mode 120000 index 59c5eff..0000000 --- a/004.musl.no-complex.build +++ /dev/null @@ -1 +0,0 @@ -006.musl.full.build \ No newline at end of file diff --git a/004.psxstub.build b/004.psxstub.build new file mode 120000 index 0000000..52bb82e --- /dev/null +++ b/004.psxstub.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/004.psxstub.vars b/004.psxstub.vars new file mode 100644 index 0000000..d9c467d --- /dev/null +++ b/004.psxstub.vars @@ -0,0 +1,20 @@ +# +# . ./build.vars and set -o errexit -o noglob are assumed. +# + +pkg_psxstub_finish() { + if ! is_build_script_done install; then + if [ "${TARGET}" = i686-nt32-midipix ] \ + || [ "${TARGET}" = x86_64-nt64-midipix ]; then + cd psxstub; + make ${MAKEFLAGS} DESTDIR=${PKG_PREFIX} TARGET=${TARGET} install; + if [ -e ${PKG_PREFIX}/lib/libpsxscl.a ]; then + echo rm -f -- ${PKG_PREFIX}/lib/libpsxscl.a; + rm -f -- ${PKG_PREFIX}/lib/libpsxscl.a; + fi; + set_build_script_done install finish; + fi; + fi; +}; + +# vim:filetype=sh diff --git a/005.gcc.runtime.build b/005.gcc.runtime.build deleted file mode 120000 index c3b435d..0000000 --- a/005.gcc.runtime.build +++ /dev/null @@ -1 +0,0 @@ -008.gcc.full.build \ No newline at end of file diff --git a/005.musl.no-complex.build b/005.musl.no-complex.build new file mode 120000 index 0000000..5455612 --- /dev/null +++ b/005.musl.no-complex.build @@ -0,0 +1 @@ +007.musl.full.build \ No newline at end of file diff --git a/006.gcc.runtime.build b/006.gcc.runtime.build new file mode 120000 index 0000000..f1fa8b2 --- /dev/null +++ b/006.gcc.runtime.build @@ -0,0 +1 @@ +009.gcc.full.build \ No newline at end of file diff --git a/006.musl.full.build b/006.musl.full.build deleted file mode 100644 index 4c6e231..0000000 --- a/006.musl.full.build +++ /dev/null @@ -1,71 +0,0 @@ -# -# . ./build.vars and set -o errexit -o noglob are assumed. -# - -# Order: no-complex, native - -# Git clone what we need. -fetch_git lazy ${GITROOT}/lazy; - -export lz_arch=${ARCH} lz_cflags_debug=-O2 lz_target=${TARGET}; - -if [ "${3}" = no-complex ]; then - # Musl: build (no-complex) - _install=install_no_complex; - set_build_dir musl-${PKG_MUSL_VERSION}-${3} cross; - if ! is_build_script_done fetch; then - fetch http://www.musl-libc.org/releases/musl-${PKG_MUSL_VERSION}.tar.gz \ - ${PKG_MUSL_SHA256SUM}; - rm_if_exists mmglue; - fetch_git mmglue ${GITROOT}/mmglue; - set_build_script_done fetch -extract; - fi; - if ! is_build_script_done extract; then - rm_if_exists musl-${PKG_MUSL_VERSION}; - tar -xf ${DLCACHEDIR}/musl-${PKG_MUSL_VERSION}.tar.gz; - set +o noglob; cp -R -- mmglue/* musl-${PKG_MUSL_VERSION}/; set -o noglob; - set_build_script_done extract -patch; - fi; - if ! is_build_script_done patch; then - patch -b -d musl-${PKG_MUSL_VERSION} -p1 \ - < ${MIDIPIX_BUILD_PWD}/musl-${PKG_MUSL_VERSION}.local.patch; - set_build_script_done patch -configure; - fi; -elif [ "${3}" = native ]; then - # Musl: build (full) - _install=install; - set_build_dir musl-${PKG_MUSL_VERSION} "${3}"; -elif [ "${3}" = full ]; then - # Musl: build (full) - _install=install; - set_build_dir musl-${PKG_MUSL_VERSION} cross; -fi; -if ! is_build_script_done configure; then - rm_if_exists -m -c ${PKG_BUILD_DIR}; - env lz_cflags_cmdline="${PKG_MUSL_CFLAGS_CONFIGURE_EXTRA}" \ - lz_debug="yes" \ - ../lazy/lazy \ - -a ${ARCH} \ - -c gcc \ - -f ${PKG_PREFIX} \ - -n musl \ - -p ../musl-${PKG_MUSL_VERSION} \ - -t ${lz_target} \ - -x config; - set_build_script_done configure clean -build; -else - cd ${PKG_BUILD_DIR}; -fi; -if ! is_build_script_done clean; then - make ${MAKEFLAGS} clean; - set_build_script_done clean -build; -fi; -if ! is_build_script_done build; then - ./lazy -e ${_install} \ - -x build; - [ "${3}" = native ] && \ - ln -sf -- ../lib/libc.so ${PKG_PREFIX}/bin/ldd; - set_build_script_done build finish; -fi; - -# vim:filetype=sh diff --git a/007.gcc.libstdc++-v3.build b/007.gcc.libstdc++-v3.build deleted file mode 120000 index c3b435d..0000000 --- a/007.gcc.libstdc++-v3.build +++ /dev/null @@ -1 +0,0 @@ -008.gcc.full.build \ No newline at end of file diff --git a/007.musl.full.build b/007.musl.full.build new file mode 100644 index 0000000..4c6e231 --- /dev/null +++ b/007.musl.full.build @@ -0,0 +1,71 @@ +# +# . ./build.vars and set -o errexit -o noglob are assumed. +# + +# Order: no-complex, native + +# Git clone what we need. +fetch_git lazy ${GITROOT}/lazy; + +export lz_arch=${ARCH} lz_cflags_debug=-O2 lz_target=${TARGET}; + +if [ "${3}" = no-complex ]; then + # Musl: build (no-complex) + _install=install_no_complex; + set_build_dir musl-${PKG_MUSL_VERSION}-${3} cross; + if ! is_build_script_done fetch; then + fetch http://www.musl-libc.org/releases/musl-${PKG_MUSL_VERSION}.tar.gz \ + ${PKG_MUSL_SHA256SUM}; + rm_if_exists mmglue; + fetch_git mmglue ${GITROOT}/mmglue; + set_build_script_done fetch -extract; + fi; + if ! is_build_script_done extract; then + rm_if_exists musl-${PKG_MUSL_VERSION}; + tar -xf ${DLCACHEDIR}/musl-${PKG_MUSL_VERSION}.tar.gz; + set +o noglob; cp -R -- mmglue/* musl-${PKG_MUSL_VERSION}/; set -o noglob; + set_build_script_done extract -patch; + fi; + if ! is_build_script_done patch; then + patch -b -d musl-${PKG_MUSL_VERSION} -p1 \ + < ${MIDIPIX_BUILD_PWD}/musl-${PKG_MUSL_VERSION}.local.patch; + set_build_script_done patch -configure; + fi; +elif [ "${3}" = native ]; then + # Musl: build (full) + _install=install; + set_build_dir musl-${PKG_MUSL_VERSION} "${3}"; +elif [ "${3}" = full ]; then + # Musl: build (full) + _install=install; + set_build_dir musl-${PKG_MUSL_VERSION} cross; +fi; +if ! is_build_script_done configure; then + rm_if_exists -m -c ${PKG_BUILD_DIR}; + env lz_cflags_cmdline="${PKG_MUSL_CFLAGS_CONFIGURE_EXTRA}" \ + lz_debug="yes" \ + ../lazy/lazy \ + -a ${ARCH} \ + -c gcc \ + -f ${PKG_PREFIX} \ + -n musl \ + -p ../musl-${PKG_MUSL_VERSION} \ + -t ${lz_target} \ + -x config; + set_build_script_done configure clean -build; +else + cd ${PKG_BUILD_DIR}; +fi; +if ! is_build_script_done clean; then + make ${MAKEFLAGS} clean; + set_build_script_done clean -build; +fi; +if ! is_build_script_done build; then + ./lazy -e ${_install} \ + -x build; + [ "${3}" = native ] && \ + ln -sf -- ../lib/libc.so ${PKG_PREFIX}/bin/ldd; + set_build_script_done build finish; +fi; + +# vim:filetype=sh diff --git a/008.gcc.full.build b/008.gcc.full.build deleted file mode 100644 index eaba17d..0000000 --- a/008.gcc.full.build +++ /dev/null @@ -1,161 +0,0 @@ -# -# . ./build.vars and set -o errexit -o noglob are assumed. -# - -# Order: stage1, runtime, full, native - -if [ "${3}" = runtime ]\ -|| [ "${3}" = libstdc++-v3 ]\ -|| [ "${3}" = full ]; then - set_build_dir cbb-gcc-${PKG_GCC_VERSION} cross; - cd ${PKG_BUILD_DIR}; - if [ "${3}" = runtime ]; then - # GCC, compiler runtime. - if ! is_build_script_done build; then - make ${MAKEFLAGS} all-target-libgcc; - set_build_script_done build -install; - fi; - if ! is_build_script_done install; then - make ${MAKEFLAGS} install-target-libgcc; - set_build_script_done install finish; - fi; - elif [ "${3}" = libstdc++-v3 ]; then - # GCC, libstdc++-v3. - if ! is_build_script_done build; then - make ${MAKEFLAGS} all-target-libstdc++-v3; - set_build_script_done build -install; - fi; - if ! is_build_script_done install; then - make ${MAKEFLAGS} install-target-libstdc++-v3; - set_build_script_done install finish; - fi; - elif [ "${3}" = full ]; then - # GCC, everything else. - if ! is_build_script_done build; then - make ${MAKEFLAGS}; - set_build_script_done build -install; - fi; - if ! is_build_script_done install; then - make ${MAKEFLAGS} install; - set_build_script_done install finish; - fi; - fi; -else - if [ "${3}" = stage1 ]; then - # GCC, stage1. - if ! is_build_script_done fetch; then - fetch_git cbb-gcc-${PKG_GCC_VERSION} \ - ${GITROOT}/cbb/cbb-gcc-${PKG_GCC_VERSION}; - set_build_script_done fetch -configure; - fi; - set_build_dir cbb-gcc-${PKG_GCC_VERSION} cross; - export cbb_ldflags_for_target=--sysroot=${PKG_PREFIX} \ - cbb_sysroot_for_libgcc=${PKG_PREFIX} \ - cbb_target=${TARGET} \ - cbb_neutral_libiberty=no \ - cbb_xgcc_for_specs=${WORKDIR}/${PKG_BUILD_DIR}/gcc/xgcc; - GCCTARGET_FLAGS="-DIN_TARGET_LIBRARY_BUILD --sysroot=${PKG_PREFIX}"; - elif [ "${3}" = native ]; then - # GCC, native. - set_build_dir cbb-gcc-${PKG_GCC_VERSION} native; - export cbb_ldflags_for_target=--sysroot=${PKG_PREFIX} \ - cbb_sysroot_for_libgcc=${PKG_PREFIX} \ - cbb_target=${TARGET} \ - cbb_xgcc_for_specs=${TARGET}-gcc; - GCCTARGET_FLAGS="-DIN_TARGET_LIBRARY_BUILD --sysroot=${PKG_PREFIX}"; - fi; - GCCFLAGS="${CFLAGS:+${CFLAGS} }--include $(readlink -f ${WORKDIR}/cbb-gcc-${PKG_GCC_VERSION}/libc/cbb-musl-pe.h)"; - for __ in CFLAGS CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD CXXFLAGS CXXFLAGS_FOR_BUILD; do - export "${__}=${GCCFLAGS}"; - done; - for __ in CFLAGS_FOR_TARGET CPPFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET LIBCFLAGS_FOR_TARGET XGCC_FLAGS_FOR_TARGET; do - export "${__}=${GCCTARGET_FLAGS}"; - done; - for __ in cbb_cflags_for_stage1 cbb_cflags_for_stage2 cbb_cflags_for_stage3 cbb_cflags_for_stage4; do - export "${__}=${CFLAGS_FOR_BUILD}" ; - done; - export CFLAGS CXXFLAGS CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CFLAGS_FOR_TARGET XGCC_FLAGS_FOR_TARGET CPPFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET LIBCFLAGS_FOR_TARGET; - if ! is_build_script_done configure; then - if [ "${3}" = stage1 ]; then - mkdir -p -- ${PKG_PREFIX}/include; - [ \! -d ${PKG_PREFIX}/usr ] && \ - ln -s -- . ${PKG_PREFIX}/usr; - _configure_args="--prefix=${PREFIX} --with-sysroot=${PKG_PREFIX}"; - elif [ "${3}" = native ]; then - mkdir -p -- ${PKG_PREFIX}/${TARGET}; - if [ \! -d ${PKG_PREFIX}/${TARGET}/usr ]; then - ln -s -- . ${PKG_PREFIX}/${TARGET}/usr; - fi; - if [ "${ARCH}" = nt32 ]; then - _configure_args="--host=i686-nt32-midipix"; - else - _configure_args="--host=x86_64-nt64-midipix"; - fi; - _configure_args="${_configure_args} \ - --prefix=/ \ - --with-elf=${PKG_PREFIX} \ - --with-gmp=${PKG_PREFIX} \ - --with-mpc=${PKG_PREFIX} \ - --with-mpfr=${PKG_PREFIX} \ - --with-sysroot="; - fi; - rm_if_exists -m -c ${PKG_BUILD_DIR}; - ../cbb-gcc-${PKG_GCC_VERSION}/configure \ - --disable-bootstrap \ - --disable-libmudflap \ - --disable-multilib \ - --disable-nls \ - --disable-obsolete \ - --disable-sjlj-exceptions \ - --disable-symvers \ - --enable-canonical-system-headers \ - --enable-__cxa_atexit \ - --enable-debug \ - --enable-gnu-indirect-function \ - --enable-gnu-unique-object \ - --enable-initfini-array \ - --enable-languages=c,c++,objc,lto \ - --enable-libstdcxx-debug \ - --enable-lto \ - --enable-multiarch \ - --enable-secureplt \ - --enable-shared \ - --enable-threads=posix \ - --target=${TARGET} \ - --with-fpmath=sse \ - ${_configure_args}; - set_build_script_done configure clean -build; - else - cd ${PKG_BUILD_DIR}; - fi; - if ! is_build_script_done clean; then - make ${MAKEFLAGS} clean; - set_build_script_done clean -build; - fi; - if ! is_build_script_done build; then - if [ "${3}" = stage1 ]; then - make ${MAKEFLAGS} all-gcc; - elif [ "${3}" = native ]; then - make ${MAKEFLAGS} all-gcc; - make ${MAKEFLAGS} all-target-libgcc; - make ${MAKEFLAGS} all-target-libstdc++-v3; - make ${MAKEFLAGS} all; - fi; - set_build_script_done build -install; - fi; - if ! is_build_script_done install; then - if [ "${3}" = stage1 ]; then - make ${MAKEFLAGS} install-gcc; - __="$(uname -s)"; - if [ "${__#*CYGWIN*}" != "${__}" ]; then - ln -s -- ${PREFIX}/libexec/gcc/${TARGET}/${PKG_GCC_VERSION}/liblto_plugin.dll.a \ - ln -s -- ${PREFIX}/libexec/gcc/${TARGET}/${PKG_GCC_VERSION}/liblto_plugin.so; - fi; - elif [ "${3}" = native ]; then - make ${MAKEFLAGS} DESTDIR=${PKG_PREFIX} install; - fi; - set_build_script_done install finish; - fi; -fi; - -# vim:filetype=sh diff --git a/008.gcc.libstdc++-v3.build b/008.gcc.libstdc++-v3.build new file mode 120000 index 0000000..f1fa8b2 --- /dev/null +++ b/008.gcc.libstdc++-v3.build @@ -0,0 +1 @@ +009.gcc.full.build \ No newline at end of file diff --git a/009.gcc.full.build b/009.gcc.full.build new file mode 100644 index 0000000..eaba17d --- /dev/null +++ b/009.gcc.full.build @@ -0,0 +1,161 @@ +# +# . ./build.vars and set -o errexit -o noglob are assumed. +# + +# Order: stage1, runtime, full, native + +if [ "${3}" = runtime ]\ +|| [ "${3}" = libstdc++-v3 ]\ +|| [ "${3}" = full ]; then + set_build_dir cbb-gcc-${PKG_GCC_VERSION} cross; + cd ${PKG_BUILD_DIR}; + if [ "${3}" = runtime ]; then + # GCC, compiler runtime. + if ! is_build_script_done build; then + make ${MAKEFLAGS} all-target-libgcc; + set_build_script_done build -install; + fi; + if ! is_build_script_done install; then + make ${MAKEFLAGS} install-target-libgcc; + set_build_script_done install finish; + fi; + elif [ "${3}" = libstdc++-v3 ]; then + # GCC, libstdc++-v3. + if ! is_build_script_done build; then + make ${MAKEFLAGS} all-target-libstdc++-v3; + set_build_script_done build -install; + fi; + if ! is_build_script_done install; then + make ${MAKEFLAGS} install-target-libstdc++-v3; + set_build_script_done install finish; + fi; + elif [ "${3}" = full ]; then + # GCC, everything else. + if ! is_build_script_done build; then + make ${MAKEFLAGS}; + set_build_script_done build -install; + fi; + if ! is_build_script_done install; then + make ${MAKEFLAGS} install; + set_build_script_done install finish; + fi; + fi; +else + if [ "${3}" = stage1 ]; then + # GCC, stage1. + if ! is_build_script_done fetch; then + fetch_git cbb-gcc-${PKG_GCC_VERSION} \ + ${GITROOT}/cbb/cbb-gcc-${PKG_GCC_VERSION}; + set_build_script_done fetch -configure; + fi; + set_build_dir cbb-gcc-${PKG_GCC_VERSION} cross; + export cbb_ldflags_for_target=--sysroot=${PKG_PREFIX} \ + cbb_sysroot_for_libgcc=${PKG_PREFIX} \ + cbb_target=${TARGET} \ + cbb_neutral_libiberty=no \ + cbb_xgcc_for_specs=${WORKDIR}/${PKG_BUILD_DIR}/gcc/xgcc; + GCCTARGET_FLAGS="-DIN_TARGET_LIBRARY_BUILD --sysroot=${PKG_PREFIX}"; + elif [ "${3}" = native ]; then + # GCC, native. + set_build_dir cbb-gcc-${PKG_GCC_VERSION} native; + export cbb_ldflags_for_target=--sysroot=${PKG_PREFIX} \ + cbb_sysroot_for_libgcc=${PKG_PREFIX} \ + cbb_target=${TARGET} \ + cbb_xgcc_for_specs=${TARGET}-gcc; + GCCTARGET_FLAGS="-DIN_TARGET_LIBRARY_BUILD --sysroot=${PKG_PREFIX}"; + fi; + GCCFLAGS="${CFLAGS:+${CFLAGS} }--include $(readlink -f ${WORKDIR}/cbb-gcc-${PKG_GCC_VERSION}/libc/cbb-musl-pe.h)"; + for __ in CFLAGS CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD CXXFLAGS CXXFLAGS_FOR_BUILD; do + export "${__}=${GCCFLAGS}"; + done; + for __ in CFLAGS_FOR_TARGET CPPFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET LIBCFLAGS_FOR_TARGET XGCC_FLAGS_FOR_TARGET; do + export "${__}=${GCCTARGET_FLAGS}"; + done; + for __ in cbb_cflags_for_stage1 cbb_cflags_for_stage2 cbb_cflags_for_stage3 cbb_cflags_for_stage4; do + export "${__}=${CFLAGS_FOR_BUILD}" ; + done; + export CFLAGS CXXFLAGS CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CFLAGS_FOR_TARGET XGCC_FLAGS_FOR_TARGET CPPFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET LIBCFLAGS_FOR_TARGET; + if ! is_build_script_done configure; then + if [ "${3}" = stage1 ]; then + mkdir -p -- ${PKG_PREFIX}/include; + [ \! -d ${PKG_PREFIX}/usr ] && \ + ln -s -- . ${PKG_PREFIX}/usr; + _configure_args="--prefix=${PREFIX} --with-sysroot=${PKG_PREFIX}"; + elif [ "${3}" = native ]; then + mkdir -p -- ${PKG_PREFIX}/${TARGET}; + if [ \! -d ${PKG_PREFIX}/${TARGET}/usr ]; then + ln -s -- . ${PKG_PREFIX}/${TARGET}/usr; + fi; + if [ "${ARCH}" = nt32 ]; then + _configure_args="--host=i686-nt32-midipix"; + else + _configure_args="--host=x86_64-nt64-midipix"; + fi; + _configure_args="${_configure_args} \ + --prefix=/ \ + --with-elf=${PKG_PREFIX} \ + --with-gmp=${PKG_PREFIX} \ + --with-mpc=${PKG_PREFIX} \ + --with-mpfr=${PKG_PREFIX} \ + --with-sysroot="; + fi; + rm_if_exists -m -c ${PKG_BUILD_DIR}; + ../cbb-gcc-${PKG_GCC_VERSION}/configure \ + --disable-bootstrap \ + --disable-libmudflap \ + --disable-multilib \ + --disable-nls \ + --disable-obsolete \ + --disable-sjlj-exceptions \ + --disable-symvers \ + --enable-canonical-system-headers \ + --enable-__cxa_atexit \ + --enable-debug \ + --enable-gnu-indirect-function \ + --enable-gnu-unique-object \ + --enable-initfini-array \ + --enable-languages=c,c++,objc,lto \ + --enable-libstdcxx-debug \ + --enable-lto \ + --enable-multiarch \ + --enable-secureplt \ + --enable-shared \ + --enable-threads=posix \ + --target=${TARGET} \ + --with-fpmath=sse \ + ${_configure_args}; + set_build_script_done configure clean -build; + else + cd ${PKG_BUILD_DIR}; + fi; + if ! is_build_script_done clean; then + make ${MAKEFLAGS} clean; + set_build_script_done clean -build; + fi; + if ! is_build_script_done build; then + if [ "${3}" = stage1 ]; then + make ${MAKEFLAGS} all-gcc; + elif [ "${3}" = native ]; then + make ${MAKEFLAGS} all-gcc; + make ${MAKEFLAGS} all-target-libgcc; + make ${MAKEFLAGS} all-target-libstdc++-v3; + make ${MAKEFLAGS} all; + fi; + set_build_script_done build -install; + fi; + if ! is_build_script_done install; then + if [ "${3}" = stage1 ]; then + make ${MAKEFLAGS} install-gcc; + __="$(uname -s)"; + if [ "${__#*CYGWIN*}" != "${__}" ]; then + ln -s -- ${PREFIX}/libexec/gcc/${TARGET}/${PKG_GCC_VERSION}/liblto_plugin.dll.a \ + ln -s -- ${PREFIX}/libexec/gcc/${TARGET}/${PKG_GCC_VERSION}/liblto_plugin.so; + fi; + elif [ "${3}" = native ]; then + make ${MAKEFLAGS} DESTDIR=${PKG_PREFIX} install; + fi; + set_build_script_done install finish; + fi; +fi; + +# vim:filetype=sh diff --git a/009.pkgconf_host.build b/009.pkgconf_host.build deleted file mode 120000 index 52bb82e..0000000 --- a/009.pkgconf_host.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/009.pkgconf_host.vars b/009.pkgconf_host.vars deleted file mode 100644 index 3443633..0000000 --- a/009.pkgconf_host.vars +++ /dev/null @@ -1,19 +0,0 @@ -# -# . ./build.vars and set -o errexit -o noglob are assumed. -# - -pkg_pkgconf_host_install_post() { - if [ -e ${PREFIX}/bin/${TARGET}-pkg-config ]; then - rm -f -- ${PREFIX}/bin/${TARGET}-pkg-config; - fi; - cat > ${PREFIX}/bin/${TARGET}-pkg-config < ${PREFIX}/bin/${TARGET}-pkg-config <