diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -415,10 +415,10 @@ Building the library as a statically linkable library ----------------------------------------------------- General: PTW32_STATIC_LIB must be defined for both the library build and the -application build. The following 'make' command lines will define this for the -static library builds. +application build. The makefiles supplied and used by the following 'make' +command lines will define this for you. -MSVC (creates pthreadVCnd.lib as a static link lib): +MSVC (creates pthreadVCn.lib as a static link lib): nmake clean VC-static @@ -428,7 +428,18 @@ MinGW32 (creates libpthreadGCn.a as a static link lib): make clean GC-static -Define PTW32_STATIC_LIB when building your application. +Define PTW32_STATIC_LIB when building your application. Also, your +application must call a two non-portable routines to initialise the +some state on startup and cleanup before exit. One other routine needs +to be called to cleanup after any Win32 threads have called POSIX API +routines. See README.NONPORTABLE or the html reference manual pages for +details on these routines: + +BOOL pthread_win32_process_attach_np (void); +BOOL pthread_win32_process_detach_np (void); +BOOL pthread_win32_thread_attach_np (void); // Currently a no-op +BOOL pthread_win32_thread_detach_np (void); + The tests makefiles have the same targets but only check that the static library is statically linkable. They don't run the full |