Files
ports/sysutils/amdmsrtweaker/files/patch-Makefile
T
Robert Clausecker 87999cd890 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
2026-02-24 01:44:49 +01:00

12 lines
366 B
Plaintext

--- 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: