1d224e6
--- processor-trace-1.5/libipt/CMakeLists.txt-orig	2016-04-07 08:52:14.000000000 +0200
1d224e6
+++ processor-trace-1.5/libipt/CMakeLists.txt	2016-08-17 23:12:23.241109244 +0200
1d224e6
@@ -81,7 +81,7 @@ endif (CMAKE_HOST_WIN32)
1d224e6
 
1d224e6
 set(LIBIPT_FILES ${LIBIPT_FILES} ${LIBIPT_SECTION_FILES})
1d224e6
 
1d224e6
-add_library(libipt SHARED
1d224e6
+add_library(libipt STATIC
1d224e6
   ${LIBIPT_FILES}
1d224e6
 )
1d224e6
 
92d45fc
--- processor-trace-1.5/libipt/src/posix/init.c-orig	2016-04-07 08:52:14.000000000 +0200
92d45fc
+++ processor-trace-1.5/libipt/src/posix/init.c	2016-08-23 09:04:11.540176668 +0200
92d45fc
@@ -29,7 +29,7 @@
92d45fc
 #include "pt_ild.h"
92d45fc
 
92d45fc
 
92d45fc
-static void __attribute__((constructor)) init(void)
92d45fc
+void __libipt_init(void)
92d45fc
 {
92d45fc
 	/* Initialize the Intel(R) Processor Trace instruction decoder. */
92d45fc
 	pt_ild_init();