Hi

the answer to myself is double escaping
cd $(1)/usr/lib/;LIB=`ls $(2).so.*.*`;ln -s $$$${LIB} $$$${LIB%.*};ln -s 
$$$${LIB} $$$${LIB%.*.*};

Le 16/02/2013 13:08, Etienne Champetier a écrit :
> Hi
>
> I'm trying to package a software (freelan) that use scons as build-tools
> The last problem i have is creating the symlink for the libraries
>
> If i have libexample.so.x.y, what is the make/openwrt way to create the 
> symlinks:
> libexample.so.x -> libexample.so.x.y
> libexample.so -> libexample.so.x
>
> I've tried:
>
> define Package/freelanlibs/Default/install
>         $(INSTALL_DIR) \
>                 $(1)/usr/lib
>         $(CP) \
>                 $(PKG_INSTALL_DIR)/usr/lib/$(2).so.*.* \
>                 $(1)/usr/lib/
>         LIB=$(1)/usr/lib/$(2).so.*.*;echo $$LIB;ln -s $${LIB} $${LIB%.*};ln 
> -s $${LIB} $${LIB%.*.*}
> endef
>
> But i've problems with Makefile variable vs bash variable, and it's not 
> really portable (bash only)
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to