From 2ac205d1d0aaff43513471b0e185b8a9a2487d9a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 14 Sep 2017 16:23:05 +0300 Subject: Unconditionally add -DPKGCONFIG_IS_STATIC to cc.export.poptions for static library --- libpkgconf/buildfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'libpkgconf/buildfile') diff --git a/libpkgconf/buildfile b/libpkgconf/buildfile index 7d0399d..e146d02 100644 --- a/libpkgconf/buildfile +++ b/libpkgconf/buildfile @@ -73,14 +73,13 @@ if ($c.target.class == "windows") c.poptions =+ "-I$out_root" "-I$src_root" -lib{pkgconf}: cc.export.poptions = "-I$src_root" +lib{pkgconf}: cc.export.poptions = "-I$src_root" +liba{pkgconf}: cc.export.poptions += -DPKGCONFIG_IS_STATIC -if ($c.target.class == "windows") - liba{pkgconf}: cc.export.poptions += -DPKGCONFIG_IS_STATIC -else - # The macro definition is moved from stdinc.h. See the corresponding comment - # there for more details. - # +# The macro definition is moved from stdinc.h. See the corresponding comment +# there for more details. +# +if ($c.target.class != "windows") obj{client fragment path pkg queue tuple}: c.poptions += -D_GNU_SOURCE # Install into the pkgconf/libpkgconf/ subdirectory of, say, /usr/include/. -- cgit v1.1