From 442c1a6790e52baa0c081f310d4d9e9b6f1ff638 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 1 May 2017 14:02:49 +0200 Subject: Try to detect MSYS2 processes --- butl/buildfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'butl/buildfile') 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/. -- cgit v1.1