Fix linking with binutils 2.22 or later on FreeBSD 9.1, where one should
authorGabor Pali <pali.gabor@gmail.com>
Sat, 27 Apr 2013 21:17:01 +0000 (23:17 +0200)
committerGabor Pali <pali.gabor@gmail.com>
Sat, 27 Apr 2013 21:17:01 +0000 (23:17 +0200)
explicitly link against any dependent library

rts/package.conf.in

index 9aef05d..279cb04 100644 (file)
@@ -41,6 +41,9 @@ extra-libraries:
                              ,"gdi32"      /* for the linker */
                              ,"winmm"      /* for the linker */
 #endif
+#ifdef freebsd_HOST_OS
+                             , "pthread" /* for pthread_getthreadid_np() */
+#endif
 #if defined(DEBUG) && defined(HAVE_LIBBFD)
                              ,"bfd", "iberty"  /* for debugging */
 #endif