Rebuild glibc in order to build hard float packages
Slackware - ARMThis forum is for the discussion of Slackware ARM.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Rebuild glibc in order to build hard float packages
Wanted to document here the process of rebuilding certain packages to hard float. I am following the steps provided in this link, which by the way, great instructions.
So, my question is, in order to rebuild specific packages, would the following CFLAGS be required?
I think rebuilding Slackware to be a complete hard float may be too much of a task. However, I wonder what specific components would have to be rebuilt in order to achieve the same principle.
My intend for this thread is to document the process. Feel free to chime in.
Wanted to document here the process of rebuilding certain packages to hard float. I am following the steps provided in this link, which by the way, great instructions.
So, my question is, in order to rebuild specific packages, would the following CFLAGS be required?
I think rebuilding Slackware to be a complete hard float may be too much of a task. However, I wonder what specific components would have to be rebuilt in order to achieve the same principle.
My intend for this thread is to document the process. Feel free to chime in.
You cannot build a hard float port from within Slackware ARM without a cross compiler (which wouldn't make any sense given how slow ARM is compared to X86)- the entire environment is soft float.
The instructions you quote are doing something different - they are building glibc so that it uses hard float instructions yet still uses the soft float ABI
This is not the same as building a hard float distribution.
You cannot build a hard float port from within Slackware ARM without a cross compiler (which wouldn't make any sense given how slow ARM is compared to X86)- the entire environment is soft float.
The instructions you quote are doing something different - they are building glibc so that it uses hard float instructions yet still uses the soft float ABI
This is not the same as building a hard float distribution.
Ah, understood. So, would rebuilding packages using -mfloat-abi=softfp be better? My intent is not to rebuild the entire distribution, but it sounds like what I want to do is not possible. Sorry for all the questions, still trying to learn my way around ARM development.
Ah, understood. So, would rebuilding packages using -mfloat-abi=softfp be better? My intent is not to rebuild the entire distribution, but it sounds like what I want to do is not possible. Sorry for all the questions, still trying to learn my way around ARM development.
You'd probably only want to rebuild anything that would benefit from using hard FP such as media players and stuff - anything else like file servers, web servers and stuff -- there's no point in my opinion.
You'd probably only want to rebuild anything that would benefit from using hard FP such as media players and stuff - anything else like file servers, web servers and stuff -- there's no point in my opinion.
That was my plan. Rebuild media players, XFCE, among a couple of other programs from XAP. So, the ABI should be softfp instead of hard?
Thank you for your patience. Last question, for now at least, would there be a reason to rebuild the entire Xorg stack?
I don't know - my feeling is that you would not want to rebuild all of it, but perhaps just the video driver you're using or something. I have no facts about that.
I don't know - my feeling is that you would not want to rebuild all of it, but perhaps just the video driver you're using or something. I have no facts about that.
I rebuilt glibc with softfp along with xfce, midori (and all of the dependencies). I can see an improvement, but obviously I have no scientific backing or hard numbers. To me, the system felt snappier, but not quite as fast as hard float. I've also built lxde and that also seems to be faster than xfce. In all, I'm pretty happy with it.
I rebuilt glibc with softfp along with xfce, midori (and all of the dependencies). I can see an improvement, but obviously I have no scientific backing or hard numbers.
If someone wants hard numbers, they can run libc-bench before and after replacing the Slackware-supplied glibc with their own custom-compiled one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.