This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/oclang/oclang b/oclang/oclang | |
index e906814..59cdc96 100755 | |
--- a/oclang/oclang | |
+++ b/oclang/oclang | |
@@ -32,6 +32,8 @@ else | |
USE_LIBCXX=0 | |
fi | |
+PREVENT_DSYMUTIL_FROM_BEING_RUN="" | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thomas@thomas-pc:~/tmp$ w64-clang++ x.cpp -static-libgcc -Wall -Wextra -Wpedantic -O0 && ./a.out | |
-0.00 -1.10 80002.00 -0.50 | |
thomas@thomas-pc:~/tmp$ w64-clang++ x.cpp -static-libgcc -Wall -Wextra -Wpedantic -O3 && ./a.out | |
-4.00 -2.70 80002.00 -0.50 | |
thomas@thomas-pc:~/tmp$ cat x.cpp | |
#include <math.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
float whscale = 2.0f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/oclang/oclang b/oclang/oclang | |
index 9cd0e8b..f07b202 100755 | |
--- a/oclang/oclang | |
+++ b/oclang/oclang | |
@@ -115,6 +115,8 @@ if [ $USE_LIBCXX -ne 0 ]; then | |
fi | |
else | |
CXXINC="-cxx-isystem $OSXCROSS_SDK/usr/lib/gcc/i686-apple-$OSXCROSS_TARGET/4.2.1/include" | |
+ CXXINC="$CXXINC -cxx-isystem $OSXCROSS_SDK/usr/include/c++/4.2.1 " | |
+ CXXINC="$CXXINC -cxx-isystem $OSXCROSS_SDK/usr/include/c++/4.2.1/$ARCH2-apple-$OSXCROSS_TARGET " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wrapper/compiler.cpp b/wrapper/compiler.cpp | |
index 41b74d7..10ddee3 100644 | |
--- a/wrapper/compiler.cpp | |
+++ b/wrapper/compiler.cpp | |
@@ -781,8 +781,8 @@ struct Target { | |
"c++1y", "gnu++1y", "c++14", "gnu++14", | |
"c++1z", "gnu++1z" }; | |
- for (auto std : STD) { | |
- if (!strcmp(langstd, std)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build.sh b/build.sh | |
index a547bfe..ec09f05 100755 | |
--- a/build.sh | |
+++ b/build.sh | |
@@ -191,6 +191,9 @@ popd &>/dev/null | |
patch -p0 < $PATCH_DIR/cctools-ld64-1.patch | |
patch -p0 < $PATCH_DIR/cctools-ld64-2.patch | |
echo "" | |
+which autogen | |
+which automake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cctools/include/foreign/i386/_types.h b/cctools/include/foreign/i386/_types.h | |
index 601b196..8bffd6f 100644 | |
--- a/cctools/include/foreign/i386/_types.h | |
+++ b/cctools/include/foreign/i386/_types.h | |
@@ -33,6 +33,15 @@ | |
* flotaing point and other arithmetic types, as needed, later. | |
*/ | |
+/* | |
+ * Silence old glibc -Wtypedef-redefinition warnings. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index e863e35..64885b5 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -1,17 +1,20 @@ | |
-PLATFORM:= $(shell ./enet/config.guess) | |
+PLATFORM_NATIVE:= $(shell ./enet/config.guess) | |
SHELL:= /bin/bash | |
-CPUINFO:= -march=native |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index 64885b5..ed10eef 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -70,7 +70,7 @@ else | |
override LIBS+= -lenet -lz -lm | |
endif | |
-override CFLAGS+= $(OPTFLAGS) $(CPUINFO) $(DEBUG) -Wall | |
+override CFLAGS+= $(OPTFLAGS) $(CPUINFO) $(DEBUG) -Wall -Wno-gnu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./configure --enable-static --disable-shared --host=i686-w64-mingw32 | |
checking for i686-w64-mingw32-gcc... i686-w64-mingw32-gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.exe | |
checking for suffix of executables... .exe | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether i686-w64-mingw32-gcc accepts -g... yes | |
checking for i686-w64-mingw32-gcc option to accept ISO C89... none needed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: fpsgame/extinfo.h | |
=================================================================== | |
--- fpsgame/extinfo.h (Revision 456) | |
+++ fpsgame/extinfo.h (Arbeitskopie) | |
@@ -94,6 +94,7 @@ | |
case EXT_UPTIME: | |
{ | |
putint(p, totalsecs); //in seconds | |
+ if(req.remaining() && req.get() > 0) putint(p, -6); | |
break; |
OlderNewer