[commit: ghc] master: - fix tests on OpenBSD which requires _DYNAMIC symbol (5f08681)

git at git.haskell.org git at git.haskell.org
Wed Dec 23 06:43:15 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/5f08681639814bd3ff383b56734bba76d06a3cdc/ghc

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

commit 5f08681639814bd3ff383b56734bba76d06a3cdc
Author: Karel Gardas <karel.gardas at centrum.cz>
Date:   Tue Dec 22 23:00:24 2015 +0100

    - fix tests on OpenBSD which requires _DYNAMIC symbol
    
    Summary:
    This patch adds _DYNAMIC symbol to the list of OpenBSD symbols.
    The patch fixes unknown _DYNAMIC symbol runtime linker error caused
    by recent update of unix library.
    
    Reviewers: bgamari, austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1689


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

5f08681639814bd3ff383b56734bba76d06a3cdc
 rts/RtsSymbols.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rts/RtsSymbols.c b/rts/RtsSymbols.c
index ffb5c39..395a5f1 100644
--- a/rts/RtsSymbols.c
+++ b/rts/RtsSymbols.c
@@ -458,7 +458,8 @@
 
 #if defined(openbsd_HOST_OS)
 #define RTS_OPENBSD_ONLY_SYMBOLS                            \
-     SymE_NeedsProto(__guard_local)
+     SymE_NeedsProto(__guard_local)                         \
+     SymE_NeedsProto(_DYNAMIC)
 #else
 #define RTS_OPENBSD_ONLY_SYMBOLS
 #endif



More information about the ghc-commits mailing list