git: 87999cd89099 - main - sysutils/amdmsrtweaker: fix build on recent FreeBSD
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Feb 2026 01:19:30 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=87999cd890995b259fa61e70dba80e8a8d153964
commit 87999cd890995b259fa61e70dba80e8a8d153964
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-02-22 11:56:57 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-02-24 00:44:49 +0000
sysutils/amdmsrtweaker: fix build on recent FreeBSD
bmake has recently started to support $^ in addition to $>, causing
both to expand and leading to a build error like
c++ -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall \
-Werror -pedantic -o amdmsrt Info.o AmdMsrTweaker.o WinRing0.o \
Worker.oInfo.o AmdMsrTweaker.o WinRing0.o Worker.o
c++: error: no such file or directory: 'Worker.oInfo.o'
Fix the error by avoiding both $^ and $>.
Approved by: portmgr (build fix blanket)
MFH: 2026Q1
---
sysutils/amdmsrtweaker/files/patch-Makefile | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/sysutils/amdmsrtweaker/files/patch-Makefile b/sysutils/amdmsrtweaker/files/patch-Makefile
new file mode 100644
index 000000000000..612aaf354fe6
--- /dev/null
+++ b/sysutils/amdmsrtweaker/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2026-02-22 11:55:23 UTC
++++ Makefile
+@@ -4,7 +4,7 @@ amdmsrt: Info.o AmdMsrTweaker.o WinRing0.o Worker.o
+ all: amdmsrt
+
+ amdmsrt: Info.o AmdMsrTweaker.o WinRing0.o Worker.o
+- $(CXX) $(CXXFLAGS) -o $@ $>$^
++ $(CXX) $(CXXFLAGS) -o $@ Info.o AmdMsrTweaker.o WinRing0.o Worker.o
+ # $>$^ is to be compatible against BSD and GNU make(1)
+
+ .cpp.o: