mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-27 14:41:12 +04:00
bzip2: pass PIC flags when linking libbz2 with LTO
Pass $(FPIC) to the linker driver so GCC generates position-independent code during LTO. This fixes MIPS relocation errors when linking libbz2.so. Signed-off-by: Anari Jalakas <anari.jalakas@gmail.com> Link: https://github.com/openwrt/openwrt/pull/26933 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
1 parent
5b32a15372
commit
1243f67874
1 file changed
+3
-3
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=bzip2
|
||||
PKG_VERSION:=1.0.8
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://sourceware.org/pub/bzip2
|
||||
@@ -55,8 +55,8 @@ define Package/bzip2/description
|
||||
data compressor. This package provides the binary.
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += \
|
||||
$(FPIC)
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
TARGET_LDFLAGS += $(FPIC)
|
||||
|
||||
CONFIGURE_ARGS += --prefix=/usr
|
||||
|
||||
|
||||
Reference in new issue
Block a user