Le 16/10/2012 17:42, Yves Blusseau a écrit :
> Le 16/10/2012 17:33, Andrew a écrit :
>> 16.10.2012 18:17, Yves Blusseau пишет:
>>> Le
>>> It's works !
>>> I have compiled bash, busybox and openssh with the x86_64 toolchain and
>>> install them into the staging dir. Then i chroot to staging dir and bash
>>> and ssh  commands works like a charm (they find their libraries).
>>>
>>> What i do to compile/install the packages is:
>>> 1) created a link in the staging directory $staging_dir/usr/lib64 ->
>>> staging_dir/usr/lib
>>> 2) created a link in the build directory: $buildir/$package/usr/lib64 ->
>>> $buildir/$package/usr/lib so when the package is installed all the 64
>>> bits libraries are put in the lib directory
>>>
>>> For 1) we can do it automaticaly by buildtool.pl when the staging
>>> directory is created
>>> For 2) we need to add a ln command to add the link in every package that
>>> can create file under /usr/lib64
>>>
>>> Are you ok with this ?
>>>
>>> Yves
>>>
>> Hi.
>> Do we actually need to do anything in build directory? I think that
>> it'll be enough to make symlink into staging dir, and all files that are
>> placed into /usr/lib64 will be placed into /usr/lib.
> Yes, look at the openssl package:
> after the make install:
>       make -C $(SOURCE_DIR) INSTALL_PREFIX=$(TARGET_DIR) install_sw
> it does:
>       -chmod -R 755 $(TARGET_DIR)/usr/lib/*
>       -$(BT_STRIP) $(BT_STRIP_LIBOPTS) $(TARGET_DIR)/usr/lib/*.so
>       -$(BT_STRIP) $(BT_STRIP_LIBOPTS) $(TARGET_DIR)/usr/lib/engines/*.so
> but in our case the /usr/lib doesn't exists (only the /usr/lib64)
> because make install will install all the libraries in /usr/lib64.
>
> The best will be to have a configure parameter that force to put all the
> libraries in /usr/lib instead of /usr/lib64
I found how to do it with configure for openssl: --libdir=lib which 
force to use /usr/lib as directory for dynamic libraries.

Yves

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to