diff options
authorKaren Arutyunov <karen@codesynthesis.com>2017-09-20 18:06:59 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-09-20 18:06:59 +0300
commitb9f3644e8384ba8ac7b9969aa45064fa7f545a79 (patch)
parent33c0a040a724970b803a22fb53c2a59ebb77dc2e (diff)
Change buildfile comment for _GNU_SOURCE macro definition
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