Re: ocaml compiled binaries and rpath
Sven Luther <luther@dpt-info.u-strasbg.fr> writes:
> On Wed, Apr 16, 2003 at 01:45:39PM +0200, Remi Vanicat wrote:
>> Sven Luther <luther@dpt-info.u-strasbg.fr> writes:
>>
>> > On Wed, Apr 16, 2003 at 12:56:38PM +0200, Remi Vanicat wrote:
>> >> Sven Luther <luther@dpt-info.u-strasbg.fr> writes:
>> >>
>> >> > Could you provide a complete list of the files and the corresponding
>> >> > rpaths ? The /usr/local/lib seems strange, and is maybe hand added by
>> >> > the build process.
>> >>
>> >> dllci_gif.so: RPATH=/usr/local/lib
>> >> dllci_jpeg.so: RPATH=/usr/local/lib
>> >> dllci_png.so: RPATH=/usr/local/lib
>> >> dllci_tiff.so: RPATH=/usr/local/lib
>> >> dllci_xpm.so: RPATH=/usr/local/lib:/usr/X11R6/lib
>> >
>> > Do you really have something in /usr/local/lib ? Maybe you are using a
>> > locally installed ci_ library ? ci_ for camlimage ?
>>
>> my /usr/local/lib is empty (well more precisely it contain only
>> directories), and the dllci_ are those from the main archive (and yes,
>> they are part of camlimage).
>
> Mmm, it would be interesting to know if these also appear on non i386
> systems, or are the result of the i386 builder (me or stefano) having
> something in /usr/local/lib.
the following patch seem to get ride of those rpath to /usr/local/lib:
--- camlimages-2.11.orig/Makefile.shared
+++ camlimages-2.11/Makefile.shared
@@ -1,5 +1,5 @@
$(CLIB) $(CDLL): $(COBJS)
- $(CAMLMKLIB) -oc $(LIBNAME) -L/usr/local/lib $(COBJS) $(EXTCLIB)
+ $(CAMLMKLIB) -oc $(LIBNAME) $(COBJS) $(EXTCLIB)
$(CMA): $(CLIB) $(MLOBJS)
if test "X$(CLIB)" = "X"; then \
@@ -62,7 +62,7 @@
$(CAMLYACC) $<
.c.o: ../config.h
- $(CAMLC) -ccopt "-I.. $(CFLAGS) -I/usr/local/include" -c $<
+ $(CAMLC) -ccopt "-I.. $(CFLAGS)" -c $<
depend: .depend
--
Rémi Vanicat
vanicat@labri.u-bordeaux.fr
http://dept-info.labri.u-bordeaux.fr/~vanicat
Reply to: