<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">



<head>

<meta http-equiv=Content-Type content="text/html; charset=us-ascii">

<meta name=Generator content="Microsoft Word 11 (filtered medium)">

<style>

<!--

 /* Style Definitions */

 p.MsoNormal, li.MsoNormal, div.MsoNormal

        {margin:0cm;

        margin-bottom:.0001pt;

        font-size:12.0pt;

        font-family:"Times New Roman";}

a:link, span.MsoHyperlink

        {color:blue;

        text-decoration:underline;}

a:visited, span.MsoHyperlinkFollowed

        {color:purple;

        text-decoration:underline;}

span.EmailStyle17

        {mso-style-type:personal-compose;

        font-family:Arial;

        color:windowtext;}

@page Section1

        {size:612.0pt 792.0pt;

        margin:72.0pt 90.0pt 72.0pt 90.0pt;}

div.Section1

        {page:Section1;}

-->

</style>



</head>



<body lang=EN-US link=blue vlink=purple>



<div class=Section1>



<p class=MsoNormal><font size=2 face=Arial><span lang=EN-IE style='font-size:

10.0pt;font-family:Arial'>I am trying to dynamically link busybox with the

correct libraries but run into problems with directory paths and CC/LD flags.<o:p></o:p></span></font></p>



<p class=MsoNormal><font size=2 face=Arial><span lang=EN-IE style='font-size:

10.0pt;font-family:Arial'>I am using the toolchain supplied with ELDK and my

target board is ppc_8xx based. The busybox version that I am using is 1.1.3.<o:p></o:p></span></font></p>



<p class=MsoNormal><font size=2 face=Arial><span lang=EN-IE style='font-size:

10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>



<p class=MsoNormal><font size=2 face=Arial><span lang=EN-IE style='font-size:

10.0pt;font-family:Arial'>I see the following in Rules.mak and have been trying

different variable options but with no success.<o:p></o:p></span></font></p>



<p class=MsoNormal><font size=2 face=Arial><span lang=EN-IE style='font-size:

10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'># To compile vs some other

alternative libc, you may need to use/adjust<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'># the following lines to

meet your needs...<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'>#<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'># If you are using Red Hat

6.x with the compatible RPMs (for developing under<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'># Red Hat 5.x and glibc 2.0)

uncomment the following.&nbsp; Be sure to read about<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'># using the compatible RPMs

(compat-*) at http://www.redhat.com !<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'>#LIBCDIR:=/usr/i386-glibc20-linux<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'>#<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'># For other libraries, you

are on your own.&nbsp; But these may (or may not) help...<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'>#LDFLAGS+=-nostdlib<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'>#LIBRARIES:=$(LIBCDIR)/lib/libc.so.6<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'>#CROSS_CFLAGS+=-nostdinc

-I$(LIBCDIR)/include -I$(GCCINCDIR) -funsigned-char<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'>#GCCINCDIR:=$(shell gcc

-print-search-dirs | sed -ne &quot;s/install: \(.*\)/\1include/gp&quot;)<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></span></font></p>



<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span

style='font-size:10.0pt;font-family:"Courier New"'>#<o:p></o:p></span></font></p>



<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;

font-family:"Courier New"'># For other libraries, you are on your own.&nbsp;

But these may (or may not) help...<o:p></o:p></span></font></p>



<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;

font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>



<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;

font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>



<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;

font-family:"Courier New"'>Is this the correct place to make modifications?<o:p></o:p></span></font></p>



<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;

font-family:"Courier New"'>Has anyone already figured the changes required to

get this to work with ELDK toolchain?<o:p></o:p></span></font></p>



<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;

font-family:"Courier New"'>Any insight would be useful.<o:p></o:p></span></font></p>



<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;

font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>



<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;

font-family:"Courier New"'>...&#8230;Keith</span></font><font size=2

face=Arial><span lang=EN-IE style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>



</div>



Legal Disclaimer:

The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message</body>



</html>