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

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