Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001594OCamlCamlIDLpublic2003-03-15 13:262003-03-20 15:48
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001594: all/opt target split
DescriptionFull_Name: Stefano Zacchiroli
Version: 3.06
OS: linux
Submission from: host204-63.pool80117.interbusiness.it (80.117.63.204)


Camlidl installation has no bytecode/nativecode split installation process.
This forces user that lack a nativecode compiler to manually patch Makefiles.

Follow patches I've applied to the debian package to ease build process on archs
which don't have native code compiler.

Thanks,
Cheers.

--- camlidl-1.04.orig/lib/Makefile
+++ camlidl-1.04/lib/Makefile
@@ -19,8 +19,11 @@
 NATIVEOBJS=$(BYTEOBJS:.cmo=.cmx)
 NATIVELIB=$(BYTELIB:.cma=.cmxa)
 INTERFACES=$(BYTEOBJS:.cmo=.cmi)
+LIBEXT=a

-all: $(BYTELIB) $(NATIVELIB)
+all: $(BYTELIB)
+
+opt: $(NATIVELIB)
 
 $(BYTELIB): $(BYTEOBJS)
  $(OCAMLC) -a -o $(BYTELIB) $(BYTEOBJS)
@@ -29,8 +32,14 @@
  $(OCAMLOPT) -a -o $(NATIVELIB) $(NATIVEOBJS)
 
 install:
- cp $(INTERFACES) $(BYTELIB) $(NATIVELIB) $(NATIVELIB:.cmxa=.$(LIBEXT))
$(OCAMLLIB)
- cd $(OCAMLLIB); $(RANLIB) $(NATIVELIB:.cmxa=.$(LIBEXT))
+ cp $(INTERFACES) $(BYTELIB) $(OCAMLLIB)
+ if [ -x /usr/bin/ocamlopt ]; then \
+ cp $(NATIVELIB) $(NATIVELIB:.cmxa=$(LIB)) $(OCAMLLIB); \
+ cd $(OCAMLLIB); \
+ $(RANLIB) $(NATIVELIB:.cmxa=$(LIB)); \
+ else \
+ true; \
+ fi

 .SUFFIXES: .mli .ml .cmi .cmo .cmx

@@ -43,7 +52,7 @@

 # Clean up
 clean::
- rm -f *.cm[ioax] $.cmxa *~
+ rm -f *.cm[ioax] *.cmxa *.a *.o *~

 # Dependencies
 depend:
--- camlidl-1.04.orig/Makefile
+++ camlidl-1.04/Makefile
@@ -20,6 +20,9 @@
  cd lib; $(MAKE) all
  cd tools; $(MAKE) all

+opt:
+ cd lib; $(MAKE) opt
+
 install:
  cd compiler; $(MAKE) install
  cd runtime; $(MAKE) install

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker