diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-09-14 16:23:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-09-14 16:23:05 +0300 |
commit | 2ac205d1d0aaff43513471b0e185b8a9a2487d9a (patch) | |
tree | c9fbc68c060994d21e21fd259192e2ff3e6fdef9 /libpkgconf/buildfile | |
parent | 5433a067a86957c1a14396d63f3e35eaeef1197d (diff) |
Unconditionally add -DPKGCONFIG_IS_STATIC to cc.export.poptions for static library
Diffstat (limited to 'libpkgconf/buildfile')
-rw-r--r-- | libpkgconf/buildfile | 13 |
1 files changed, 6 insertions, 7 deletions
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/. |