mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	libspl_assert: always link -lpthread on FreeBSD
The pthread_* functions are in -lpthread on FreeBSD. Some of them are implicitly linked through libc, but on FreeBSD 13 at least pthread_getname_np() is not. Just be explicit, since -lpthread is the documented interface anyway. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16168
This commit is contained in:
		
							parent
							
								
									bc42d96d66
								
							
						
					
					
						commit
						2a2e358475
					
				@ -45,3 +45,7 @@ libspl_la_LIBADD = \
 | 
				
			|||||||
libspl_la_LIBADD += $(LIBATOMIC_LIBS) $(LIBCLOCK_GETTIME)
 | 
					libspl_la_LIBADD += $(LIBATOMIC_LIBS) $(LIBCLOCK_GETTIME)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
libspl_assert_la_LIBADD = $(BACKTRACE_LIBS) $(LIBUNWIND_LIBS)
 | 
					libspl_assert_la_LIBADD = $(BACKTRACE_LIBS) $(LIBUNWIND_LIBS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if BUILD_FREEBSD
 | 
				
			||||||
 | 
					libspl_assert_la_LIBADD += -lpthread
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user