tech-pkg archive

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

Re: xentools41 LDFLAGS Re: broken packages for 2012Q3

On Mon, Oct 15, 2012 at 10:50:26AM +0200, Joerg Sonnenberger wrote:
> You need to use both -Wl,-rpath and -Wl,-rpath-link in that case. The
> former is about the destination embedded in the binary, the latter is
> used for lookup during linkage.

see attached patch, which allows oxenstored to build with the correct
rpath.  -L seems to take care of the link rpath.  untested, as I'm still
getting another xen server assembled to test this on.

  Aaron J. Grier | "Not your ordinary poofy goof." |
--- ocaml/Makefile.rules.orig   2012-11-20 08:16:03.000000000 +0000
+++ ocaml/Makefile.rules        2012-11-20 08:16:48.000000000 +0000
@@ -65,7 +65,7 @@
  $(1)_stubs.a: $(foreach obj,$$($(1)_C_OBJS),$(obj).o)
        $(call mk-caml-stubs,$$@, $$+)
  lib$(1)_stubs.a: $(foreach obj,$($(1)_C_OBJS),$(obj).o)
-       $(call mk-caml-lib-stubs,$$@, $$+, $(LIBS_$(1)))
+       $(call mk-caml-lib-stubs,$$@, $$+, -ldopt -Wl,-rpath=$(PREFIX)/lib 
 define OCAML_NOC_LIBRARY_template

Home | Main Index | Thread Index | Old Index