]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
windows: Link against psapi32
authorMartin Willi <martin@revosec.ch>
Thu, 5 Jun 2014 11:14:13 +0000 (13:14 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 6 Jun 2014 14:28:28 +0000 (16:28 +0200)
On some version GetModuleFileNameEx/GetModuleInformation is in psapi32 instead
of kernel32. We link to both libraries to make sure we have it.

src/libstrongswan/Makefile.am

index 9a08825fd74f53c3c24e215d99c37585813b6679..d3bd84e10213d2315133e8d457fe72bb1c08e558 100644 (file)
@@ -125,7 +125,7 @@ AM_LDFLAGS = \
 AM_YFLAGS = -v -d
 
 if USE_WINDOWS
-  libstrongswan_la_LIBADD += -lws2_32
+  libstrongswan_la_LIBADD += -lws2_32 -lpsapi
   libstrongswan_la_SOURCES += \
     threading/windows/thread.c \
     threading/windows/thread_value.c \