1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/libelf/libelf.conf
3 # Copyright (C) 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 if [ "$SDECFG_LIBC" = "uclibc" -o "$SDECFG_LIBC" = "musl" ]; then
13 hook_add preconf 8 "echo -e 'ac_cv_search_fts_close=yes\nac_cv_search__obstack_free=yes' >> config.cache"
14 var_append patchfiles " " "$confdir/no-fts.diff"
16 var_append extraconfopt ' ' '--enable-elf64 --disable-debuginfod'
17 var_append makeinstopt ' ' "instroot=$root"
19 [[ $arch == mips* ]] && var_remove_regex GCC_WRAPPER_INSERT " " ".*-flto.*"