Ticket #23040 (reopened defect)
ocamlmklib doesn't understand -arch
| Reported by: | jeremyhu@… | Owned by: | mww@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.1 |
| Keywords: | Cc: | achim.passen@…, fh@… | |
| Port: | ocaml |
Description
Building ocamlimages, we execute ocamlmklib from ocaml which doesn't understand our LDFLAGS (including -arch)
ocamlmklib -oc ci_jpeg -L/opt/local/lib -arch x86_64 jpegread.o jpegwrite.o -ljpeg Unknown option -arch Don't know what to do with x86_64 Usage: ocamlmklib [options] <.cmo|.cma|.cmx|.cmxa|.ml|.mli|.o|.a|.obj|.lib|.dll files> Options are: -cclib <lib> C library passed to ocamlc -a or ocamlopt -a only -ccopt <opt> C option passed to ocamlc -a or ocamlopt -a only
Attachments
Change History
comment:5 Changed 2 years ago by mww@…
- Status changed from new to closed
- Resolution set to fixed
thanks, commited!
comment:6 Changed 2 years ago by jmr@…
- Status changed from closed to reopened
- Resolution fixed deleted
r76475 only fixed caml-sqlite3. This is a general problem; and in fact the description for this ticket only specifically mentions ocamlimages.
comment:7 Changed 2 years ago by jmr@…
Fixed camlimages in r77600. I'd suggest doing it this way for all ports that require it, since clearing the archflags as was done for caml-sqlite3 breaks build_arch support entirely.
Changed 2 years ago by fh@…
- Attachment Portfile-caml-sqlite3.2.diff added
Better handling of arch flags as suggested by jmr@…
Note: See
TracTickets for help on using
tickets.


Cc Me!