From b9f3644e8384ba8ac7b9969aa45064fa7f545a79 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 20 Sep 2017 18:06:59 +0300 Subject: Change buildfile comment for _GNU_SOURCE macro definition --- libpkgconf/buildfile | 6 ++++-- 1 file 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 -- cgit v1.1