Bug 2881 - Can't build project statically with external toolchain
Summary: Can't build project statically with external toolchain
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-02 13:44 UTC by Serj Kalichev
Modified: 2012-04-29 21:14 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Don't copy shared libraries to the target dir if BR2_PREFER_STATIC_LIB defined (1.02 KB, patch)
2010-12-02 13:44 UTC, Serj Kalichev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serj Kalichev 2010-12-02 13:44:43 UTC
Created attachment 2749 [details]
Don't copy shared libraries to the target dir if BR2_PREFER_STATIC_LIB defined

Hello

Buildroot version: 2010.11

I tried to build minimal busybox-only project for using as initramfs. I use external buildroot toolchain. The buildroot copy the .so libraries from external toolchain to the target dir unconditionally. But I build busybox statically and don't need shared libraries (the size of resulted image is too big with unneeded libraries).

The attached patch use BR2_PREFER_STATIC_LIB to find out if the project prefer static linking and if the static linking is preferred don't copy shared libraries to the target dir.