[commit: ghc] master: Fix linking with binutils 2.22 or later on FreeBSD 9.1, where one should explicitly link against any dependent library (c797499)

Páli Gábor János pali.gabor at gmail.com
Sun Apr 28 01:35:27 CEST 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

https://github.com/ghc/ghc/commit/c7974998200ee6c65d2358d13379ccc86457471d

>---------------------------------------------------------------

commit c7974998200ee6c65d2358d13379ccc86457471d
Author: Gabor Pali <pali.gabor at gmail.com>
Date:   Sat Apr 27 23:17:01 2013 +0200

    Fix linking with binutils 2.22 or later on FreeBSD 9.1, where one should
    explicitly link against any dependent library

>---------------------------------------------------------------

 rts/package.conf.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/rts/package.conf.in b/rts/package.conf.in
index 9aef05d..279cb04 100644
--- a/rts/package.conf.in
+++ b/rts/package.conf.in
@@ -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





More information about the ghc-commits mailing list