mirror of
				https://github.com/encounter/SDL.git
				synced 2025-10-25 19:20:25 +00:00 
			
		
		
		
	cmake: freebsd: Don't REQUIRE libunwind.pc on FreeBSD
FreeBSD includes the libunwind APIs in in the base system libgcc_s and does not install a .pc file for it. This change fixes the build on FreeBSD for me.
This commit is contained in:
		
							parent
							
								
									ae7446a959
								
							
						
					
					
						commit
						cd8f57ee4e
					
				| @ -1416,8 +1416,10 @@ elseif(UNIX AND NOT APPLE AND NOT ANDROID AND NOT RISCOS AND NOT HAIKU) | |||||||
|       endif() |       endif() | ||||||
| 
 | 
 | ||||||
|       if(HAVE_LIBUNWIND_H) |       if(HAVE_LIBUNWIND_H) | ||||||
|         # We've already found the header, so REQUIRE the lib to be present |         # We've already found the header, so link the lib if present. | ||||||
|         pkg_search_module(UNWIND REQUIRED libunwind) |         # NB: This .pc file is not present on FreeBSD where the implicitly | ||||||
|  |         # linked base system libgcc_s includes all libunwind ABI. | ||||||
|  |         pkg_search_module(UNWIND libunwind) | ||||||
|         pkg_search_module(UNWIND_GENERIC libunwind-generic) |         pkg_search_module(UNWIND_GENERIC libunwind-generic) | ||||||
|         list(APPEND EXTRA_TEST_LIBS ${UNWIND_LIBRARIES} ${UNWIND_GENERIC_LIBRARIES}) |         list(APPEND EXTRA_TEST_LIBS ${UNWIND_LIBRARIES} ${UNWIND_GENERIC_LIBRARIES}) | ||||||
|       endif() |       endif() | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user