diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2017-12-18 17:46:25 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw@src.gnome.org> | 2018-01-07 01:45:47 +0800 |
commit | 08113da388f33fc85151d872f317bc2daacafba1 (patch) | |
tree | bedebafee66c8c60d68bd49aed3c7ad1a8c6fa9e /mesonbuild/scripts/gtkdochelper.py | |
parent | fd66692f73efb80783172b9d346ae4a5b6b6fa6d (diff) | |
download | meson-08113da388f33fc85151d872f317bc2daacafba1.zip meson-08113da388f33fc85151d872f317bc2daacafba1.tar.gz meson-08113da388f33fc85151d872f317bc2daacafba1.tar.bz2 |
gnome.gtkdoc: Pass *FLAGS set in the environment to gtkdoc-scangobj
GLib-based libraries and applications require gettext library to compile
and link. On non-GNU systems such as FreeBSD, gettext is not included in
libc and it is required to pass '-L/usr/local/lib -lintl' to the linker
to satisfy the dependency on gettext. The pkg-config file provided by
GLib already has '-lintl', but users still have to remember to put
'-L/usr/local/lib' into LDFLAGS. If we don't pass LDFLAGS to
gtkdoc-scangobj, the linker will not be able to find '-lintl' when no
dependencies of the project provides '-L/usr/local/lib'.
Since all *FLAGS are commonly used in many build systems, this commit
adds support for not only LDFLAGS but also CFLAGS and CPPFLAGS.
Fixes #1724
Diffstat (limited to 'mesonbuild/scripts/gtkdochelper.py')
0 files changed, 0 insertions, 0 deletions