]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Prepend to LIBS rather than replacing
authorWerner Dittmann <Werner.Dittmann@t-online.de>
Mon, 25 Jun 2012 17:09:37 +0000 (19:09 +0200)
committerTravis Cross <tc@traviscross.com>
Mon, 11 Feb 2013 16:42:06 +0000 (16:42 +0000)
Modified-by: Travis Cross <tc@traviscross.com>
libs/libzrtp/configure.in

index bbb2d5d751e8e051c059fbbf8b5c5878f74ae1a3..d0a5a056619bfc56dd8b3556a36750bc5cdddd57 100644 (file)
@@ -78,7 +78,7 @@ AC_CHECK_FUNCS([pthread_mutex_lock pthread_mutex_unlock pthread_mutex_init pthre
 AC_CHECK_FUNCS([pthread_attr_init pthread_attr_setdetachstate pthread_create])
 AC_CHECK_FUNCS([sem_wait sem_trywait sem_post sem_unlink sem_destroy sem_open sem_init])
 
-AC_CHECK_LIB([pthread], [main], [LIB_PTHREAD="-lpthread"], [echo "  Couldn't find library pthread";])
+AC_CHECK_LIB([pthread], [main], [LIBS="-lpthread $LIBS"], [echo "  Couldn't find library pthread";])
 
 # Other
 AC_DEFINE(PRAGMA_PACK_PUSH,[#pragma pack(push, 1)],[Define pragma pack(push) for your platform])