diff options
-rw-r--r-- | libpkgconf/buildfile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libpkgconf/buildfile b/libpkgconf/buildfile index a2f9427..c95d201 100644 --- a/libpkgconf/buildfile +++ b/libpkgconf/buildfile @@ -17,7 +17,6 @@ else h{version}: in{version} $src_root/file{manifest} tclass = $c.target.class -tsys = $c.target.system # Define the PKG_DEFAULT_PATH, SYSTEM_INCLUDEDIR and SYSTEM_LIBDIR macros. # The whole idea feels utterly broken (hello cross-compilation) so we will @@ -58,7 +57,7 @@ c.poptions += -DPKG_DEFAULT_PATH=\"$def_dirs\" \ # Disable warnings. # -if ($tsys == "win32-msvc") +if ($c.class == 'msvc') c.coptions += /wd4996 /wd4267 if ($tclass == "windows") @@ -68,7 +67,7 @@ if ($tclass == "windows") objs{*}: c.poptions += -DLIBPKGCONF_EXPORT obja{*}: c.poptions += -DPKGCONFIG_IS_STATIC - if ($tsys == "mingw32") + if ($c.target.system == "mingw32") c.libs += -ladvapi32 else c.libs += advapi32.lib |