summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-08-08 18:16:50 +0200
committerKay Sievers <kay@vrfy.org>2012-08-08 18:18:57 +0200
commit29a00c41b8085596c8d5bba00cc758c38069ab48 (patch)
treeeaea82f217dc72aae0a3f38ad73c845224128c17
parentd568a3350ee8a45877eef87cd026a954124e2cf8 (diff)
gudev: docs - work around the broken gtk-doc mess
gtk-doc add CFLAGS/LDFLAGS multiple times to the gcc command line, which breaks options that must be listed only once. For now, clear CFLAGS/LDFLAGS for the intermediate documentation binary.
-rw-r--r--docs/gudev/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/gudev/Makefile.am b/docs/gudev/Makefile.am
index 586dd8d190..152cd3c018 100644
--- a/docs/gudev/Makefile.am
+++ b/docs/gudev/Makefile.am
@@ -72,6 +72,14 @@ content_files = version.xml
# e.g. expand_content_files=running.sgml
expand_content_files=
+# Hack, hack. You silly gtk-doc, you must not add CFLAGS multiple
+# times when calling gcc; it surely can not work with options that must
+# be listed only once.
+# Kill CFLAGS here because gtk-doc thinks adding CFLAGS to CC _and_ also
+# adding CFLAGS itself again would work.
+CFLAGS=
+LDFLAGS=
+
# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
# Only needed if you are using gtkdoc-scangobj to dynamically query widget
# signals and properties.