[glib: 1/2] meson: Fix linking with static library in Windows




commit 4356683136881f678ae7be6efe3a4f48d10f9812
Author: Biswapriyo Nath <nathbappai gmail com>
Date:   Thu Dec 2 19:33:46 2021 +0000

    meson: Fix linking with static library in Windows
    
    libuuid is required for known folder IDs in glib/gutils.c file

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 075287ac0..9d1b76c56 100644
--- a/meson.build
+++ b/meson.build
@@ -2296,7 +2296,7 @@ if host_system == 'windows' and cc.get_id() != 'msvc' and cc.get_id() != 'clang-
   add_project_arguments(win32_cflags, language : 'c')
 
   # Win32 API libs, used only by libglib and exposed in glib-2.0.pc
-  win32_ldflags = ['-lws2_32', '-lole32', '-lwinmm', '-lshlwapi']
+  win32_ldflags = ['-lws2_32', '-lole32', '-lwinmm', '-lshlwapi', '-luuid']
 elif host_system == 'cygwin'
   win32_ldflags = ['-luser32', '-lkernel32']
 endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]