mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
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.
14 lines
669 B
Diff
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
|
|
|