1
From: Stefano Zacchiroli <zack@debian.org>
2
Date: Tue, 6 Oct 2009 15:34:00 +0200
3
Subject: Add rpath to Apache module
5
Add rpath to Apache module, pointing to `ocamlc -where`. Rationale:
6
ensure libcamlrun_shared.so can be found.
8
Signed-off-by: Stefano Zacchiroli <zack@debian.org>
10
src/netcgi2-apache/Makefile.def | 2 +-
11
1 files changed, 1 insertions(+), 1 deletions(-)
13
diff --git a/src/netcgi2-apache/Makefile.def b/src/netcgi2-apache/Makefile.def
14
index 7b1bb61..e93bae8 100644
15
--- a/src/netcgi2-apache/Makefile.def
16
+++ b/src/netcgi2-apache/Makefile.def
17
@@ -50,7 +50,7 @@ endif
18
### Only works with OCaml >= 3.11 on plafforms where PIC differs from non-PIC
19
### See http://caml.inria.fr/mantis/view.php?id=3866
20
mod_netcgi_apache.so: $(MOD_OBJECTS)
21
- $(APXS) -c -o $@ $^ -L$(APACHE_OCAMLLIBDIR) $(patsubst -lcamlrun,-lcamlrun_shared,$(APACHE_OCAMLLIBS))
22
+ $(APXS) -c -o $@ $^ -L$(APACHE_OCAMLLIBDIR) -Wl,--rpath,$(APACHE_OCAMLLIBDIR) $(patsubst -lcamlrun,-lcamlrun_shared,$(APACHE_OCAMLLIBS))
23
test -f .libs/$@ && cp .libs/$@ .
25
netcgi_apache_mod.lo: netcgi_apache_mod.o