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

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