diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-01 14:02:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-01 14:09:24 +0200 |
commit | 442c1a6790e52baa0c081f310d4d9e9b6f1ff638 (patch) | |
tree | eb5b95db50367e8326407e1ae5fff52da21a59f3 /butl/buildfile | |
parent | 0eff5aede5ad7622ef184fcd0c24f6e088e9d031 (diff) |
Try to detect MSYS2 processes
Diffstat (limited to 'butl/buildfile')
-rw-r--r-- | butl/buildfile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/butl/buildfile b/butl/buildfile index 25354c8..53fa588 100644 --- a/butl/buildfile +++ b/butl/buildfile @@ -77,7 +77,14 @@ lib{butl}: cxx.export.poptions = "-I$out_root" "-I$src_root" liba{butl}: cxx.export.poptions += -DLIBBUTL_STATIC libs{butl}: cxx.export.poptions += -DLIBBUTL_SHARED -if ($cxx.target.class != "windows") +if ($cxx.target.class == "windows") +{ + if ($cxx.target.system == "mingw32") + cxx.libs += -lpsapi + else + cxx.libs += psapi.lib +} +else cxx.libs += -lpthread # Install into the butl/ subdirectory of, say, /usr/include/. |