diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-09-13 18:00:45 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-09-14 02:19:05 +0300 |
commit | f297400327eb6d2b66087f21f549cade62a990e2 (patch) | |
tree | 046d8adf5e5991db6bb7b03f6396cb1e09d1b7cf /libpkgconf/buildfile | |
parent | 06bcbc7a504a41612e766b7c791cd8a788b24cfa (diff) |
Add some C++ related fixes
Diffstat (limited to 'libpkgconf/buildfile')
-rw-r--r-- | libpkgconf/buildfile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libpkgconf/buildfile b/libpkgconf/buildfile index 285ff01..7d0399d 100644 --- a/libpkgconf/buildfile +++ b/libpkgconf/buildfile @@ -64,7 +64,6 @@ if ($c.target.class == "windows") # objs{*}: c.poptions += -DLIBPKGCONF_EXPORT obja{*}: c.poptions += -DPKGCONFIG_IS_STATIC - liba{pkgconf}: cc.export.poptions += -DPKGCONFIG_IS_STATIC if ($c.target.system == "mingw32") c.libs += -ladvapi32 @@ -76,6 +75,14 @@ c.poptions =+ "-I$out_root" "-I$src_root" lib{pkgconf}: cc.export.poptions = "-I$src_root" +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. + # + obj{client fragment path pkg queue tuple}: c.poptions += -D_GNU_SOURCE + # Install into the pkgconf/libpkgconf/ subdirectory of, say, /usr/include/. # Also make sure Cflags is properly set in .pc files to pkgconfig/. # |