octave-maintainers
[Top][All Lists]
Advanced

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

Re: gnulib and automake


From: John W. Eaton
Subject: Re: gnulib and automake
Date: Sat, 7 Nov 2009 00:07:32 -0500

On  6-Nov-2009, Benjamin Lindner wrote:

| Ok, now make is stopping at the following error:
| 
| ln -s .libs/`sed -n -e "s/dlname='\([^']*\)'/\1/p" < 
| DLD-FUNCTIONS/__convn__.la` DLD-FUNCTIONS/__convn__.oct
| ln: creating symbolic link `DLD-FUNCTIONS/__convn__.oct' to 
| `.libs/__convn__-0.dll': No such file or directory
| make[3]: *** [DLD-FUNCTIONS/__convn__.oct] Error 1
| make[3]: Leaving directory 
| `/octmgw32/octave/.build_mingw32_octave-tip-automake-4_gcc-4.4.0-dw2/src'
| 
| In my build directrory I have
|   .build/src/.libs/
| and
|   .build/src/DLD-FUNCTION/.libs/
| 
| and the dld-function shared libs are located in the latter (while 
| liboctinterp.dll is found in the former diretctory)
| So in my case, since the makefile is executed in the src/ directory
| the ln command should probably read
| 
| ln -s DLD-FUNCTIONS/.libs/`sed -n -e "s/dlname='\([^']*\)'/\1/p" < 
| DLD-FUNCTIONS/__convn__.la` DLD-FUNCTIONS/__convn__.oct
| 
| I don't know if this is now a mingw speciality of libtool to put the 
| libraries there.

On my system, running the command

  $(LN_S) .libs/foo.dll DLD-FUNCTIONS/foo.oct

in the parent of the DLD-FUNCTIONS directory creates a symbolic link
in the DLD-FUNCTIONS directory with the name __convn__.oct that points
to the file .libs/foo.dll.

Ah, but Windows doesn't have symbolic links and $(LN_S) is just cp, so
I guess this fails.  OK, I think what we need to do is

  cd DLD-FUNCTIONS && $(LN_S) .libs/foo.dll foo.oct

so that it will work correctly with either cp or "ln -s".  I've made a
change that should do this correctly now.  The updated versinon of my
patch is now on http://jweaton.org/automake-diffs.gz. This version of
the patch includes all the other changes I made on Friday.

Thanks,

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]