From 8366bbdd7b1f17f0b89bbde524a3e1eac712698e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 14 Nov 2014 11:21:15 -0500 Subject: [PATCH] Fixed gcc-fat.sh failing to build Objective-C sources correctly. This would fail if the compiler was given a .m file _and_ no "-o" option; it would fail to automatically calculate the correct .o filename in this situation. Thanks to Ethan Lee for the help tracking this one down! --- build-scripts/g++-fat.sh | 2 +- build-scripts/gcc-fat.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build-scripts/g++-fat.sh b/build-scripts/g++-fat.sh index 6e4f53e7c..b6fe7bb48 100755 --- a/build-scripts/g++-fat.sh +++ b/build-scripts/g++-fat.sh @@ -34,7 +34,7 @@ while test x$1 != x; do compile=no; link=no;; -c) link=no;; -o) output=$2;; - *.c|*.cc|*.cpp|*.S) source=$1;; + *.c|*.cc|*.cpp|*.S|*.m|*.mm) source=$1;; esac shift done diff --git a/build-scripts/gcc-fat.sh b/build-scripts/gcc-fat.sh index edabb0d87..e556c1dd1 100755 --- a/build-scripts/gcc-fat.sh +++ b/build-scripts/gcc-fat.sh @@ -35,7 +35,7 @@ while test x$1 != x; do compile=no; link=no;; -c) link=no;; -o) output=$2;; - *.c|*.cc|*.cpp|*.S) source=$1;; + *.c|*.cc|*.cpp|*.S|*.m|*.mm) source=$1;; esac shift done