summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlain Frisch <alain@frisch.fr>2007-06-04 16:31:52 +0000
committerAlain Frisch <alain@frisch.fr>2007-06-04 16:31:52 +0000
commitbae8a8eb7cd1e6f3d07856d9715a2efad2cf5df1 (patch)
tree572b42d825cd14c07d90aa7640f34c6954fdd455
parent59c2fbebb44508b43080e6ac83511318a0e614aa (diff)
downloadocaml-bae8a8eb7cd1e6f3d07856d9715a2efad2cf5df1.tar.gz
compile otherlibs in -dlcode
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/natdynlink@8315 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--otherlibs/Makefile2
-rw-r--r--otherlibs/systhreads/Makefile4
2 files changed, 3 insertions, 3 deletions
diff --git a/otherlibs/Makefile b/otherlibs/Makefile
index 41de9c7235..23a96397ea 100644
--- a/otherlibs/Makefile
+++ b/otherlibs/Makefile
@@ -23,7 +23,7 @@ CC=$(BYTECC)
CFLAGS?=-I$(ROOTDIR)/byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) $(EXTRACFLAGS)
CAMLRUN=$(ROOTDIR)/boot/ocamlrun
CAMLC ?= $(ROOTDIR)/ocamlcomp.sh
-CAMLOPT ?= $(ROOTDIR)/ocamlcompopt.sh
+CAMLOPT ?= $(ROOTDIR)/ocamlcompopt.sh -dlcode
COMPFLAGS=-warn-error A -g $(EXTRACAMLFLAGS)
MKLIB=$(CAMLRUN) $(ROOTDIR)/tools/ocamlmklib
diff --git a/otherlibs/systhreads/Makefile b/otherlibs/systhreads/Makefile
index b06c3eef24..1a247513c2 100644
--- a/otherlibs/systhreads/Makefile
+++ b/otherlibs/systhreads/Makefile
@@ -65,7 +65,7 @@ threads.cmxa: $(THREAD_OBJS:.cmo=.cmx)
# Build threads.cmxs, even if unsafe
threads.cmxs: threads.cmxa
- $(CAMLOPT) -shared -o threads.cmxs -I . threads.cmxa -linkall
+ $(CAMLOPT) -shared -dlcode -o threads.cmxs -I . threads.cmxa -linkall
$(THREAD_OBJS:.cmo=.cmx): ../../ocamlopt
@@ -104,7 +104,7 @@ installopt:
$(CAMLC) -c $(COMPFLAGS) $<
.ml.cmx:
- $(CAMLOPT) -c $(COMPFLAGS) $<
+ $(CAMLOPT) -dlcode -c $(COMPFLAGS) $<
depend: $(GENFILES)
-gcc -MM -I../../byterun *.c > .depend