pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/ocaml

Module Name:    pkgsrc
Committed By:   is
Date:           Thu Mar 14 14:29:49 UTC 2013

Modified Files:
        pkgsrc/lang/ocaml: Makefile distinfo
Added Files:
        pkgsrc/lang/ocaml/patches: patch-tools_ocamlmklib

Log Message:
ocamlmklib adds absolute directories (that is, such starting with
'/') given to -L to run-time library search path passed to the
lower linker using -Wl,-rpath=

This is a problem, because even if we add the right directory with
-Wl,-rpath= or variants thereof, the wrong path still is in the
RPATH on the resulting binary. This might lead to the wrong library
being found at run-time.

To build clean packages when using ocamlmklib, '-elfmode' will switch
this behaviour off; when using '-elfmode', all following -L parameters
won't augment the RPATH, and it has to be updated seperately with
-dllpath, -Wl,-rpath= etc.

(This is a local pkgsrc stopgap addition, needed to proceed with
fixes to xentools41. The issue has been raised with upstream;
hopefully this patch can be reverted with a future ocaml package

To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 pkgsrc/lang/ocaml/Makefile
cvs rdiff -u -r1.69 -r1.70 pkgsrc/lang/ocaml/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/ocaml/patches/patch-tools_ocamlmklib

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index