[Buildroot] [PATCH 2/2] microperl: install host-microperl in $(HOST_DIR)/opt/perl
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Wed Mar 28 10:55:47 UTC 2012
Le Wed, 28 Mar 2012 11:40:00 +0100,
Will Newton <will.newton at gmail.com> a écrit :
> Do you think that setting LD_LIBRARY_PATH in the way I suggested is
> unsafe? I had some concerns that it might affect the search path for
> libraries but I believe this is not an issue with a cross linker
> (according to the ld man page, I haven't checked the code), and it
> does not break any of the test builds I have done.
In the past, we had the problem that when we were building target
packages that required host utilities installed in $(HOST_DIR)/usr/bin,
those utilities were not able to find their libraries in
$(HOST_DIR)/usr/lib. We tried using LD_LIBRARY_PATH, but libtool used
it as the search path for libraries when compiling target stuff. So, we
decided to hardcode the correct rpath in all binaries built and
installed in $(HOST_DIR)/usr/bin.
So, yes, I believe that adding LD_LIBRARY_PATH is going to cause
problems, unless those problems have disappeared for some other reason.
See:
c1b6242fdcf2cff7ebf09fec4cc1be58963e8427
0d1830b07db4ebfd14e77a258de6fb391e57e960
6b939d40f6a29a43277566adc9d4312d49cb3abf
For a history of what we tried on this topic.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
More information about the buildroot
mailing list