# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/glibc32/glibc32.conf # Copyright (C) 2004 - 2023 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- # force 32 bit code if [[ $arch_target = *mips* ]]; then var_insert GCC_WRAPPER_INSERT " " "-mabi=32" var_append GCC_WRAPPER_INSERT " " " -modd-spreg" else var_insert GCC_WRAPPER_INSERT " " "-m32" fi arch_target="`echo $arch_target | arch2arch32`" echo_status "Set arch_target to $arch_target" set_confopt # force minimal optimization due TLS [ "$SDECFG_X8664_OPT" = "generic" ] && var_append GCC_WRAPPER_INSERT " " "-march=i686" [ "$SDECFG_SPARC64_OPT" = "generic" ] && var_append GCC_WRAPPER_INSERT " " "-mcpu=v9" # do what glibc does . $base/package/*/glibc/glibc.conf # a bit hacky - might need/get a cleanup ... var_append patchfiles " " "`ls $confdir/../glibc/*.patch`" if ! atstage native; then var_append patchfiles " " "`ls $confdir/../glibc/*.patch.cross 2>/dev/null`" fi # do not build the programs hook_add premake 5 "cat > configparms <<-EOT build-programs=no EOT " var_remove makeinstopt ' ' 'install' var_append makeinstopt ' ' 'install-lib-all' libdir="${libdir%/*}/lib" slibdir=lib # and last overwrite the postmake function to do less stuff glibc_postmake() { ln -sfv ../lib64/locale $root$libdir/locale cp -avf gnu/lib-names-*.h $root$includedir/gnu/ # Create /lib/ld-lsb.so.1 symlink # if [ -f $root$slibdir/ld-linux-$arch_machine.so.2 ]; then ln -vfs ld-linux-$arch_machine.so.2 $root$slibdir/ld-lsb.so.1 elif [ -f $root$slibdir/ld-linux.so.2 ]; then ln -vfs ld-linux.so.2 $root$slibdir/ld-lsb.so.1 fi }