pkg-config: Remove pthread link flag from Cflags
Remove the threads link library variable references from the pkg-config Cflags: field, removing -lpthread(s) from the compile flags. "-l*" linker flags should only be part of the Libs: section and should not be part of the Cflags: section in pkg-config files. This was first suggested in https://github.com/google/googletest/pull/2006 and further discussed in https://github.com/google/googletest/pull/2483 .
This commit is contained in:
		@@ -8,4 +8,4 @@ Version: @PROJECT_VERSION@
 | 
			
		||||
URL: https://github.com/google/googletest
 | 
			
		||||
Requires: gmock
 | 
			
		||||
Libs: -L${libdir} -lgmock_main @CMAKE_THREAD_LIBS_INIT@
 | 
			
		||||
Cflags: -I${includedir} @GTEST_HAS_PTHREAD_MACRO@ @CMAKE_THREAD_LIBS_INIT@
 | 
			
		||||
Cflags: -I${includedir} @GTEST_HAS_PTHREAD_MACRO@
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user