[vsipl++] [patch] Install cml_kernels.so

Brooks Moses brooks at codesourcery.com
Fri Sep 19 07:59:18 UTC 2008


Jules Bergmann wrote, at 9/15/2008 9:18 PM:
> plus install additional ukernel directories.
> 
> Patch applied.

There's what may be a minor problem with this bit:
> +# NOTE: Installing cml_kernels.so is a work-around for SDK 3.0 ALF, which
> +#       only accepts 1 directory in ALF_LIBRARY_PATH.  libs/cml_kernels.so
> +#       is a link created by configure.
>  install-core:: lib/svpp_kernels.so
>  	$(INSTALL) -d $(DESTDIR)$(libdir)
>  	$(INSTALL_PROGRAM) lib/svpp_kernels.so \
>            $(DESTDIR)$(libdir)/svpp_kernels.so
> +	$(INSTALL_PROGRAM) lib/cml_kernels.so \
> +          $(DESTDIR)$(libdir)/cml_kernels.so

The lib/cml_kernels.so file is created with this line:

    ln -sf $with_cml_prefix/$cml_libdir_found/cml_kernels.so lib

A bit of experimenting indicates that install will, when presented with
trying to install a symlink to file $FOO over top of file $FOO, throw an
error about them being the same file and emit a nonzero return value.
This will stop the "make install" process.

The attached patch should fix this; okay to commit?

- Brooks

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 2008-09-18_install-cml-kernels.diff
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20080919/95fd904d/attachment.ksh>


More information about the vsipl++ mailing list