Bug 16030

Summary: libb64 built without -fPIC
Product: buildroot Reporter: stsp <stsp2>
Component: OtherAssignee: unassigned
Status: RESOLVED MOVED    
Severity: normal CC: buildroot, yann.morin.1998
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description stsp 2024-04-10 19:05:41 UTC
... and therefore can't be used to
link with any solib.

The fix:

diff --git a/package/libb64/libb64.mk b/package/libb64/libb64.mk
index ed6d3cf4b4..3c3754d6e6 100644
--- a/package/libb64/libb64.mk
+++ b/package/libb64/libb64.mk
@@ -18,7 +18,7 @@ define LIBB64_EXTRACT_CMDS
 endef
 
 define LIBB64_BUILD_CMDS
-       $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CCFLAGS="$(TARGET_CFLAGS)" -C $(@D) all_src
+       $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -fPIC" -C $(@D) all_src
 endef
 
 define LIBB64_INSTALL_STAGING_CMDS
Comment 1 Yann E. MORIN 2024-06-15 15:22:12 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!