aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorErick Tryzelaar <idadesub@users.sourceforge.net>2010-03-21 23:15:13 +0000
committerErick Tryzelaar <idadesub@users.sourceforge.net>2010-03-21 23:15:13 +0000
commit08fdf6b18b4afabb7ce3f034ed5537c5d3173f8a (patch)
tree17492b787f09984743c97837b6ec4c54b86446e8 /examples
parent44126f019022b0c4cfdf6785d939ca180927c11a (diff)
downloadexternal_llvm-08fdf6b18b4afabb7ce3f034ed5537c5d3173f8a.zip
external_llvm-08fdf6b18b4afabb7ce3f034ed5537c5d3173f8a.tar.gz
external_llvm-08fdf6b18b4afabb7ce3f034ed5537c5d3173f8a.tar.bz2
Fix the ocaml kaleidoscope tutorial to fix linking external libraries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99151 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/OCaml-Kaleidoscope/Chapter6/myocamlbuild.ml2
-rw-r--r--examples/OCaml-Kaleidoscope/Chapter7/myocamlbuild.ml2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/OCaml-Kaleidoscope/Chapter6/myocamlbuild.ml b/examples/OCaml-Kaleidoscope/Chapter6/myocamlbuild.ml
index ff42664..54d3fd9 100644
--- a/examples/OCaml-Kaleidoscope/Chapter6/myocamlbuild.ml
+++ b/examples/OCaml-Kaleidoscope/Chapter6/myocamlbuild.ml
@@ -6,5 +6,5 @@ ocaml_lib ~extern:true "llvm_executionengine";;
ocaml_lib ~extern:true "llvm_target";;
ocaml_lib ~extern:true "llvm_scalar_opts";;
-flag ["link"; "ocaml"; "g++"] (S[A"-cc"; A"g++"]);;
+flag ["link"; "ocaml"; "g++"] (S[A"-cc"; A"g++"; A"-cclib"; A"-rdynamic"]);;
dep ["link"; "ocaml"; "use_bindings"] ["bindings.o"];;
diff --git a/examples/OCaml-Kaleidoscope/Chapter7/myocamlbuild.ml b/examples/OCaml-Kaleidoscope/Chapter7/myocamlbuild.ml
index ff42664..54d3fd9 100644
--- a/examples/OCaml-Kaleidoscope/Chapter7/myocamlbuild.ml
+++ b/examples/OCaml-Kaleidoscope/Chapter7/myocamlbuild.ml
@@ -6,5 +6,5 @@ ocaml_lib ~extern:true "llvm_executionengine";;
ocaml_lib ~extern:true "llvm_target";;
ocaml_lib ~extern:true "llvm_scalar_opts";;
-flag ["link"; "ocaml"; "g++"] (S[A"-cc"; A"g++"]);;
+flag ["link"; "ocaml"; "g++"] (S[A"-cc"; A"g++"; A"-cclib"; A"-rdynamic"]);;
dep ["link"; "ocaml"; "use_bindings"] ["bindings.o"];;