aboutsummaryrefslogtreecommitdiff
path: root/libpkgconf/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'libpkgconf/buildfile')
-rw-r--r--libpkgconf/buildfile9
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/.
#