# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by scripts/Create-CopyPatch. # # T2 SDE: package/*/pkgconfig/pkgconfig.conf # Copyright (C) 2006 - 2020 The T2 SDE Project # # 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 as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- if atstage toolchain; then # no pkg-config itself, so it needs to pick it up the old way var_append SYSCC_WRAPPER_APPEND " " "-I$root/include/glib-2.0 -I$root$libdir/glib-2.0/include" var_append SYSCC_WRAPPER_APPEND " " "-c?:-L$root$libdir -Wl,-rpath,$root$libdir -lglib-2.0" else hook_add postmake 5 "cp $confdir/profile_d_pkgconfig.sh $root/etc/profile.d/pkgconfig" fi if atstage cross; then # help configure hook_add preconf 5 "echo 'glib_cv_stack_grows=yes glib_cv_has__inline=yes glib_cv_has__inline__=yes glib_cv_hasinline=yes glib_cv_sane_realloc=yes glib_cv_va_copy=yes glib_cv___va_copy=yes glib_cv_va_val_copy=yes glib_cv_uscore=no glib_cv_sizeof_gmutex=24 ac_cv_func_getpwuid_r=yes ac_cv_func_posix_getpwuid_r=yes' >> config.cache" fi # make sure packages do not depend randomly on the first package creating it hook_add postmake 5 "mkdir -p $root$libdir/pkgconfig" if atstage native; then var_append confopt ' ' "--disable-host-tool" fi