summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2019-09-30 15:08:30 +0000
committerMichael Weghorn <m.weghorn@posteo.de>2019-10-01 07:44:10 +0200
commit2d4bb24588dc872ba856dd4430541e0e0a641b7e (patch)
tree52070b3bf3bbdb757e946c5429db84db6217db01 /RepositoryExternal.mk
parent981654f6e0d57c2c6dd1bbf740a6b67941146497 (diff)
gbuild: treat $(DCONF_CFLAGS) as includes, not defines
Since that variable holds the relevant includes, using 'gb_LinkTarget_set_include' makes sure that those flags end up in the correct section, e.g. when generating IDE integration using 'gbuild-to-ide', and thus prevents issues like that described in 4aa60490622cc10f8d3a31489c62a5622d240c83 ("gbuild: treat $({QT,KF}5_CFLAGS) as cxxflags, not defines"). (Value of 'DCONF_CFLAGS' variable on Debian testing with 'libdconf-dev' 0.34.0-1 is: DCONF_CFLAGS=-pthread -I/usr/include/dconf -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include ) Change-Id: I74c5194d88838bffa2b8515372266336627f235c Reviewed-on: https://gerrit.libreoffice.org/79874 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 4d99f79e86ec..5ce23a10c6db 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -3589,7 +3589,11 @@ gb_LinkTarget__use_libgpg-error :=
endif # ENABLE_GPGMEPP
define gb_LinkTarget__use_dconf
-$(call gb_LinkTarget_add_defs,$(1),$(DCONF_CFLAGS))
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ $(DCONF_CFLAGS) \
+)
+
$(call gb_LinkTarget_add_libs,$(1),$(DCONF_LIBS))
endef