Blame SOURCES/v1.5-libipt-static.patch

6240d7
Index: processor-trace-2.0/libipt/CMakeLists.txt
6240d7
===================================================================
6240d7
--- processor-trace-2.0.orig/libipt/CMakeLists.txt
6240d7
+++ processor-trace-2.0/libipt/CMakeLists.txt
6240d7
@@ -85,7 +85,7 @@ endif (CMAKE_HOST_WIN32)
6240d7
 
6240d7
 set(LIBIPT_FILES ${LIBIPT_FILES} ${LIBIPT_SECTION_FILES})
6240d7
 
6240d7
-add_library(libipt SHARED
6240d7
+add_library(libipt STATIC
6240d7
   ${LIBIPT_FILES}
6240d7
 )
6240d7
 
6240d7
Index: processor-trace-2.0/libipt/src/posix/init.c
6240d7
===================================================================
6240d7
--- processor-trace-2.0.orig/libipt/src/posix/init.c
6240d7
+++ processor-trace-2.0/libipt/src/posix/init.c
6240d7
@@ -29,7 +29,7 @@
6240d7
 #include "pt_ild.h"
6240d7
 
6240d7
 
6240d7
-static void __attribute__((constructor)) init(void)
6240d7
+void __libipt_init(void)
6240d7
 {
6240d7
 	/* Initialize the Intel(R) Processor Trace instruction decoder. */
6240d7
 	pt_ild_init();