Browse Source

glib: helped glib to find gettext on stage 0. See note!

The configure of glib uses $CPPFLAGS from environment for testing the
availability of libintl.h, so we need to export that.
master
Nagy Károly Gábriel 9 years ago
parent
commit
4c7c0d7242
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      base/glib/glib.conf

+ 12
- 0
base/glib/glib.conf

@ -19,5 +19,17 @@ if ! atstage native; then
var_append configcache ' ' 'glib_cv_uscore=no'
var_append configcache ' ' 'ac_cv_func_posix_getpwuid_r=yes'
var_append configcache ' ' 'ac_cv_func_posix_getgrgid_r=yes'
find-get-text() {
if pkginstalled -f gettext-stub; then
var_append CFLAGS ' ' "-I$root/$( pkgprefix includedir gettext-stub )"
var_append CPPFLAGS ' ' "-I$root/$( pkgprefix includedir gettext-stub )"
var_append LDLAGS ' ' "-L$root/$( pkgprefix libdir gettext-stub )"
export CFLAGS CPPFLAGS LDFLAGS
fi
}
hook_add preconf 8 'find-get-text'
fi
hook_add preconf 9 'autoreconf -ivf'
# we never want this file
var_append INSTALL_WRAPPER_FILTER "|" "sed -e 's,.*/charset.alias,/tmp/x,'"

Loading…
Cancel
Save