summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorAustin Seipp <austin@well-typed.com>2013-09-13 02:01:33 -0500
committerAustin Seipp <austin@well-typed.com>2013-09-13 02:07:21 -0500
commitf56a7878426bf749bdb60e81cb293fbe488d54c6 (patch)
tree064b4e7ba87307077a0d35ed7bc8edd44024ec5f /rts
parent1f77a5341cbd6649a6bc2af868002728cd79b9d7 (diff)
downloadhaskell-f56a7878426bf749bdb60e81cb293fbe488d54c6.tar.gz
Fix static GHCi build (#8270)
When Ryan merged in the atomics branch, he made atomic_inc and atomic_dec EXTERN_INLINE functions, meaning their definitions became part of object files in the non-threaded build, instead of being inlined. As a result, this broke the linker for static GHCi, since it couldn't properly resolve the now-externally defined functions. Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'rts')
-rw-r--r--rts/Linker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/Linker.c b/rts/Linker.c
index b4f726054b..4bc0e040ad 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -1349,6 +1349,8 @@ typedef struct _RtsSymbolVal {
SymI_HasProto(unlockFile) \
SymI_HasProto(startProfTimer) \
SymI_HasProto(stopProfTimer) \
+ SymI_HasProto(atomic_inc) \
+ SymI_HasProto(atomic_dec) \
RTS_USER_SIGNALS_SYMBOLS \
RTS_INTCHAR_SYMBOLS