aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpkgconf/buildfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpkgconf/buildfile b/libpkgconf/buildfile
index e146d02..8e91ec8 100644
--- a/libpkgconf/buildfile
+++ b/libpkgconf/buildfile
@@ -76,8 +76,10 @@ c.poptions =+ "-I$out_root" "-I$src_root"
lib{pkgconf}: cc.export.poptions = "-I$src_root"
liba{pkgconf}: cc.export.poptions += -DPKGCONFIG_IS_STATIC
-# The macro definition is moved from stdinc.h. See the corresponding comment
-# there for more details.
+# In the original package the source files are compiled with -std=gnu99 option
+# to allow some GNU deviations from the ISO C99 standard. We will compile with
+# -std=c9x option (is implied by c.std=99 in root.build) and define _GNU_SOURCE
+# for the source files that require such deviations.
#
if ($c.target.class != "windows")
obj{client fragment path pkg queue tuple}: c.poptions += -D_GNU_SOURCE