--- GPL/nativeBuildProperties.gradle.orig	2025-03-02 14:41:25 UTC
+++ GPL/nativeBuildProperties.gradle
@@ -55,10 +55,17 @@ model {
 		if (isCurrentFreeBSD()) {
 			gcc(Gcc) {
 				if (isCurrentArm_64()) {
-					target("freebsd_arm_64")
+					target("freebsd_arm_64") {
+						cCompiler.executable = "%%CC_BINARY%%"
+						cppCompiler.executable = "%%CPP_BINARY%%"
+					}
 				} 
 				else {
-					target("freebsd_x86_64")
+					target("freebsd_x86_64") {
+						cCompiler.executable = "%%CC_BINARY%%"
+						cppCompiler.executable = "%%CPP_BINARY%%"
+						linker.executable = "%%CC_BINARY%%"
+					}
 				}
 			}
 		}
