[LLVMbugs] [Bug 3153] New: OCaml binding's Makefile.ocaml creates incorrect symlinks
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Dec 2 17:02:43 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=3153
Summary: OCaml binding's Makefile.ocaml creates incorrect
symlinks
Product: Build scripts
Version: 2.4
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Makefiles
AssignedTo: unassignedbugs at nondot.org
ReportedBy: salimma at fedoraproject.org
CC: llvmbugs at cs.uiuc.edu
The build target 'install-deplibs' in Makefile.ocaml links files in
$(PROJ_libdir) to $(PROJ_libocamldir).
Unfortunately, when used within many build systems, all the $(PROJ_*) have
$(DESTDIR) prepended to them, meaning the links created are invalid within the
installed system.
The proper fix, using autoconf/automake/configure, is to have all the PROJ_*
variables *not* contain DESTDIR, and using $(DESTDIR)$(PROJ_*) in all the
install targets. But if llvm is moving to cmake in the near future, it might
not be worth fixing this.
My current workaround is to patch Makefile.ocaml to use $(OVERRIDE_libdir)
instead of $(PROJ_libdir) and pass the right value to 'make install'
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list