mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
Merge pull request #106 from Frederick888/feature/gcc-6.3.0-darwin-driver-patch
GCC 6.3.0 Patch
This commit is contained in:
commit
9acc00bfc2
@ -65,6 +65,11 @@ if [ $(osxcross-cmp $GCC_VERSION '>' 5.0.0) == 1 ] &&
|
|||||||
patch -p1 < $PATCH_DIR/gcc-pr66035.patch
|
patch -p1 < $PATCH_DIR/gcc-pr66035.patch
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $(osxcross-cmp $GCC_VERSION '==' 6.3.0) == 1 ]; then
|
||||||
|
# https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/darwin-driver.c?r1=244010&r2=244009&pathrev=244010
|
||||||
|
patch -p1 < $PATCH_DIR/darwin-driver.c.patch
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
pushd build &>/dev/null
|
pushd build &>/dev/null
|
||||||
|
|
||||||
|
15
patches/darwin-driver.c.patch
Normal file
15
patches/darwin-driver.c.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
--- trunk/gcc/config/darwin-driver.c 2017/01/03 00:16:13 244009
|
||||||
|
+++ trunk/gcc/config/darwin-driver.c 2017/01/03 05:36:40 244010
|
||||||
|
@@ -299,10 +299,10 @@
|
||||||
|
if (vers_string != NULL)
|
||||||
|
{
|
||||||
|
char *asm_major = NULL;
|
||||||
|
- char *first_period = strchr(vers_string, '.');
|
||||||
|
+ const char *first_period = strchr(vers_string, '.');
|
||||||
|
if (first_period != NULL)
|
||||||
|
{
|
||||||
|
- char *second_period = strchr(first_period+1, '.');
|
||||||
|
+ const char *second_period = strchr(first_period+1, '.');
|
||||||
|
if (second_period != NULL)
|
||||||
|
asm_major = xstrndup (vers_string, second_period-vers_string);
|
||||||
|
else
|
Loading…
Reference in New Issue
Block a user