# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/binutils/binutils.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 --- [[ "$arch" = loongarch* || "$arch" = mips* || "$arch" = s390* ]] && echo_warning "Gold disabled for $arch" || var_append extraconfopt ' ' '--enable-gold --enable-ld=default' var_append extraconfopt ' ' '--enable-threads --enable-plugins --enable-shared' var_append extraconfopt ' ' '--enable-64-bit-bfd --enable-targets=no' [ "$arch" = "ia64" ] && var_append extraconfopt ' ' '--enable-obsolete' if atstage toolchain; then var_append confopt " " "--with-sysroot=$sysroot" var_append confopt " " '--program-prefix=${arch_target}-' else confopt="${confopt/--with-sysroot/--with-libtool-sysroot}" var_append confopt ' ' "--enable-install-libiberty" fi var_append confopt " " "--disable-gprofng" # hotfix libtool relink on install breaking gcc lto plugin if atstage native; then hook_add inmake 5 "install {bfd,opcodes}/.libs/lib*-*.so $root$libdir/" hook_add inmake 5 "install libsframe/.libs/lib*.so.* $root$libdir/" fi