Le Thursday 09 April 2009 00:41:57 Orama Avis, vous avez écrit :
> Good afternoon,
Hi !
> I am now retrying FreeBSD build, this time from trunk.
>
> My configure args are following:
>
> ./configure CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
>
> however make still is unable find libs:
>
> gmake[3]: `libao_stubs.a' is up to date.
> ocamlmklib \
> -o ao_stubs ao_stubs.o -lao \
>
> /usr/bin/ld: cannot find -lao
>
> I have checked, libao.so is in /usr/local/lib
Indeed, I had not seen this. Apparently the -L option is not passed to
ocamlmklib.
I have found a variable which makes it work:
Index: Makefile.in
===================================================================
--- Makefile.in (révision 6515)
+++ Makefile.in (copie de travail)
@@ -30,6 +30,7 @@
ACLIBS = @LIBS@ @libao_LIBS@
LDFLAGS = @LDFLAGS@ @libao_LDFLAGS@
CLIBS = $(ACLIBS:-l%=%)
+LIBDIRS = $(LDFLAGS:-L%=%)
CC = @CC@
CFLAGS = @CFLAGS@ @libao_CFLAGS@ -Wall -DCAML_NAME_SPACE
CPPFLAGS = @CPPFLAGS@
Using this patch, the compilation should hopefully be sucessful.
I don't know however if this is the good place to add this and if the LDFLAGS
will always contain value of the form -L%.. I have added our specialist for
these questions, Julien, which may help in solving this issue..
Romain
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users