Bug 16030 - libb64 built without -fPIC
Summary: libb64 built without -fPIC
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-10 19:05 UTC by stsp
Modified: 2024-06-15 15:22 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!