1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/.../pkgconfig/pkgconfig.conf
5 # Copyright (C) 2006 - 2020 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 if atstage toolchain; then
16 # no pkg-config itself, so it needs to pick it up the old way
17 var_append SYSCC_WRAPPER_APPEND " " "-I$root/include/glib-2.0 -I$root$libdir/glib-2.0/include"
18 var_append SYSCC_WRAPPER_APPEND " " "-c?:-L$root$libdir -Wl,-rpath,$root$libdir -lglib-2.0"
20 hook_add postmake 5 "cp $confdir/profile_d_pkgconfig.sh $root/etc/profile.d/pkgconfig"
23 if atstage cross; then
25 hook_add preconf 5 "echo 'glib_cv_stack_grows=yes
26 glib_cv_has__inline=yes
27 glib_cv_has__inline__=yes
29 glib_cv_sane_realloc=yes
32 glib_cv_va_val_copy=yes
34 glib_cv_sizeof_gmutex=24
35 ac_cv_func_getpwuid_r=yes
36 ac_cv_func_posix_getpwuid_r=yes' >> config.cache"
39 # make sure packages do not depend randomly on the first package creating it
40 hook_add postmake 5 "mkdir -p $root$libdir/pkgconfig"
42 if atstage native; then
43 var_append confopt ' ' "--disable-host-tool"