Skip to content

Commit 61bf65c

Browse files
committed
lm-sensors: pass TARGET_LDFLAGS to fix shared library linking
Explicitly pass $(TARGET_LDFLAGS) to the build system to resolve MIPS linker errors related to missing -fPIC. Signed-off-by: Anari Jalakas <[email protected]>
1 parent b3ab179 commit 61bf65c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/lm-sensors/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
99

1010
PKG_NAME:=lm-sensors
1111
PKG_VERSION:=3.6.2
12-
PKG_RELEASE:=4
12+
PKG_RELEASE:=5
1313

1414
PKG_VERSION_SUBST=$(subst .,-,$(PKG_VERSION))
1515
PKG_SOURCE_URL:=https://codeload.github.com/hramrach/lm-sensors/tar.gz/V$(PKG_VERSION_SUBST)?
@@ -110,6 +110,7 @@ define Build/Compile
110110
LINUX="$(LINUX_DIR)" \
111111
CC="$(TARGET_CC)" \
112112
CFLAGS="$(TARGET_CFLAGS)" \
113+
LDFLAGS="$(TARGET_LDFLAGS)" \
113114
CPPFLAGS="$(TARGET_CPPFLAGS)" \
114115
STAGING_DIR="$(STAGING_DIR)" \
115116
PREFIX="/usr" \

0 commit comments

Comments
 (0)