diff --git a/bin/makefile-init-darwin.aarch64 b/bin/makefile-init-darwin.aarch64 index 1314d4f..9a51ad1 100644 --- a/bin/makefile-init-darwin.aarch64 +++ b/bin/makefile-init-darwin.aarch64 @@ -1,6 +1,6 @@ # Options for MacOS, aarch64 processor, X windows, for INIT processing -CC = clang $(CLANG_CFLAGS) +CC = clang -target arm64-apple-darwin13 $(CLANG_CFLAGS) XFILES = $(OBJECTDIR)xmkicon.o \ $(OBJECTDIR)xbbt.o \ diff --git a/bin/makefile-init-darwin.x86_64 b/bin/makefile-init-darwin.x86_64 index 322b4a8..f8f205c 100644 --- a/bin/makefile-init-darwin.x86_64 +++ b/bin/makefile-init-darwin.x86_64 @@ -1,6 +1,6 @@ # Options for MacOS, x86_64 processor, X windows, for INIT processing -CC = clang -m64 $(CLANG_CFLAGS) +CC = clang -m64 -target x86_64-apple-darwin13 $(CLANG_CFLAGS) XFILES = $(OBJECTDIR)xmkicon.o \ $(OBJECTDIR)xbbt.o \ diff --git a/bin/makeright b/bin/makeright index e8407a0..0bbb5d0 100755 --- a/bin/makeright +++ b/bin/makeright @@ -64,16 +64,22 @@ fi architecture=`machinetype` osversion=`osversion` -if test "$osversion" != "darwin" +if test "$target_arch" != "" then - echo "WARNING: target architecture applies only to the Darwin (MacOS) platform": - echo "Ignoring target architecture argument: $target" -elif test "$target_arch" = "x86_64" - then - architecure=$target_arch -elif test "$target_arch" = "aarch64" - then - architecure=$target_arch + if test "$osversion" != "darwin" + then + echo "!!!!!!!!!! WARNING: target architecture applies only to the Darwin (MacOS) platform" + echo "!!!!!!!!!! Ignoring target architecture argument: $target_arch" + elif test "$target_arch" = "x86_64" + then + architecture=$target_arch + elif test "$target_arch" = "aarch64" + then + architecture=$target_arch + else + echo "!!!!!!!!! WARNING: Unknown target architecture: $target_arch" + echo "!!!!!!!!! Ignoring second argument." + fi fi echo "making so far for ${osversion} on ${architecture}."