-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build libclang as a static library and link it into LibClang
- Loading branch information
1 parent
bb67b9b
commit b98dbf9
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ config.status | |
src/Clang/Internal/FFI_stub_ffi.c | ||
src/Clang/Internal/FFI_stub_ffi.h | ||
cabal-dev | ||
build/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
[submodule "llvm"] | ||
path = llvm | ||
url = git://github.com/sfowler/llvm.git | ||
ignore = untracked | ||
[submodule "clang"] | ||
path = clang | ||
url = git://github.com/sfowler/clang.git | ||
ignore = untracked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b98dbf9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you ensuring that it is built statically? I thought it only works in ghci if you enable shared? Also, I'm getting an error about needing -fPIC, see #25 (comment)
Maybe this is to deal with LD_LIBRARY_PATH problems?
b98dbf9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the opposite, at least on OS X - it only works in ghci if it's built statically. I hope the reverse isn't true on linux!
Thanks for posting the log on the issue; I'm about to go to bed but I'll look into it tomorrow.