Skip to content

Commit 8af7360

Browse files
committed
Also search the bare ocaml standard library path for llvm bindings.
Ubuntu ships the llvm bindings in /usr/lib/ocaml/llvm/ but Fedora is installing them directly in /usr/lib/ocaml so we need to check there as well. The patch is untested; Fedora 14, the current beta, includes llvm 2.7. It does add an unnecessary -I directive, but should at least have a better chance of working on Fedora 15.
1 parent b606b65 commit 8af7360

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ ifneq ($(CFG_LLVM_CONFIG),)
183183
$(shell ocamlc$(OPT) -config | grep standard_library:))
184184
CFG_OCAML_LLVM := $(shell \
185185
for path in $(shell $(CFG_LLVM_CONFIG) --libdir)/ocaml \
186+
$(CFG_OCAML_LIBPATH) \
186187
$(CFG_OCAML_LIBPATH)/llvm \
187188
$(CFG_OCAML_LIBPATH)/llvm-$(CFG_LLVM_VERSION) ; do \
188189
if test -e $${path}/llvm.cma; then echo $${path}; break; fi \

0 commit comments

Comments
 (0)