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