diff --git a/Xcode/CloverX64/clang-slink b/Xcode/CloverX64/clang-slink index 33a40808de..edc26c0295 100755 --- a/Xcode/CloverX64/clang-slink +++ b/Xcode/CloverX64/clang-slink @@ -66,7 +66,8 @@ ld -arch x86_64 -u __ModuleEntryPoint -e __ModuleEntryPoint -preload -segalign -[[ $? == 0 ]] && "$edk2prefix"/../opt/local/bin/mtoc.NEW_jief -subsystem UEFI_APPLICATION -align 0x20 ./"$outputname".dll ./"$outputname".pecoff +source "$edk2prefix"/Conf/mtoc_path.txt +[[ $? == 0 ]] && "$MTOC" -subsystem UEFI_APPLICATION -align 0x20 ./"$outputname".dll ./"$outputname".pecoff [[ $? == 0 ]] && dsymutil ./"$outputname".dll diff --git a/ebuild.sh b/ebuild.sh index 6a1aaf92d2..024f17c2ad 100755 --- a/ebuild.sh +++ b/ebuild.sh @@ -499,6 +499,7 @@ MainBuildScript() { set +u source ./edksetup.sh BaseTools set -u + echo "MTOC=$MTOC_PREFIX/mtoc.NEW_jief" > "$WORKSPACE"/Conf/mtoc_path.txt cd "$CLOVERROOT" # else # echo "Building from: $WORKSPACE"