1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## rpath-apache.dpatch by Stefano Zacchiroli <zack@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: add rpath to Apache module, pointing to `ocamlc -where`
6
## DP: rationale: ensure libcamlrun_shared.so can be found
9
diff -urNad ocamlnet~/src/netcgi2-apache/Makefile.def ocamlnet/src/netcgi2-apache/Makefile.def
10
--- ocamlnet~/src/netcgi2-apache/Makefile.def 2008-10-29 00:19:10.175784001 +0100
11
+++ ocamlnet/src/netcgi2-apache/Makefile.def 2008-10-29 00:19:56.095780612 +0100
13
### Embed Caml code into the C code.
14
### Requires `caml_startup' instead of `caml_main' in handler.c
15
mod_netcgi_apache.so: $(MOD_OBJECTS)
16
- $(APXS) -c -o $@ $^ -L$(APACHE_OCAMLLIBDIR) $(patsubst -lcamlrun,-lcamlrun_shared,$(APACHE_OCAMLLIBS))
17
+ $(APXS) -c -o $@ $^ -L$(APACHE_OCAMLLIBDIR) -Wl,--rpath,$(APACHE_OCAMLLIBDIR) $(patsubst -lcamlrun,-lcamlrun_shared,$(APACHE_OCAMLLIBS))
18
test -f .libs/$@ && cp .libs/$@ .
20
netcgi_apache_mod.lo: netcgi_apache_mod.o