1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/community/linux-tools/dt_lnk.patch
psykose c544d8ad25 community/linux-tools: upgrade to 6.1.6
all removed patches are unneeded anymore (upstreamed/fixed)
dt_lnk.patch is required for DT_LNK

this aport also makes more sense to follow the 'latest' kernel release
model- the tools aren't really developed in the LTS branches, so keeping
it on lts just means they stay out of date.
2023-01-15 10:31:42 +00:00

14 lines
669 B
Diff

DT_LNK requires _BSD_SOURCE or _GNU_SOURCE to be exposed
diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefile
index f9c52b7fa..f073f873b 100644
--- a/tools/thermal/tmon/Makefile
+++ b/tools/thermal/tmon/Makefile
@@ -8,7 +8,7 @@ BINDIR=usr/bin
WARNFLAGS=-Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit-int
override CFLAGS+= $(call cc-option,-O3,-O1) ${WARNFLAGS}
# Add "-fstack-protector" only if toolchain supports it.
-override CFLAGS+= $(call cc-option,-fstack-protector-strong)
+override CFLAGS+= $(call cc-option,-fstack-protector-strong) -D_BSD_SOURCE
CC?= $(CROSS_COMPILE)gcc
PKG_CONFIG?= $(CROSS_COMPILE)pkg-config