Hendricks266, on 03 March 2019 - 12:26 PM, said:
Is that parameter needed or can -stdlib=libc++ be used instead?
That parameter is actually needed. It wont compile when I use
-stdlib=libc++.
I wasn't using Apples compiler but the MacPorts Clang 4.0.1 that I also use for making the EDuke32 builds and I changed the Common.mak file like this:
Zoidberg:NBlood rhoenie$ diff Common.mak.orig Common.mak
8d7
<
96c95
< PRETTY_OUTPUT := 1
---
> PRETTY_OUTPUT := 0
179,180c178,185
< CC := $(CROSS)clang$(CROSS_SUFFIX)
< CXX := $(CROSS)clang++$(CROSS_SUFFIX)
---
> CC := /opt/local/bin/clang-mp-4.0 -I/opt/local/libexec/llvm-4.0/lib/c++/v1/ -I/opt/local/libexec/llvm-4.0/lib/c++/ -mmacosx-version-min=10.7
> CXX := /opt/local/bin/clang++-mp-4.0 -I/opt/local/libexec/llvm-4.0/lib/c++/v1/ -I/opt/local/libexec/llvm-4.0/lib/c++/ -mmacosx-version-min=10.7
>
> COBJC := /opt/local/bin/clang-mp-4.0 -std=c99 -x objective-c -mmacosx-version-min=10.7
> COBJCXX := /opt/local/bin/clang-mp-4.0 -std=c99 -x objective-c++ -mmacosx-version-min=10.7
> else
> COBJC := $(CC) -x objective-c
> COBJCXX := $(CXX) -x objective-c++
183,184d187
< COBJC := $(CC) -x objective-c
< COBJCXX := $(CXX) -x objective-c++
570c573,575
< OPTOPT := -march=core2 -mmmx -msse -msse2 -msse3 -mssse3
---
> # OPTOPT := -march=core2 -mmmx -msse -msse2 -msse3 -mssse3
> OPTOPT := -m64
> L_CXXONLYFLAGS += -lc++
The
-I/opt/local/libexec/llvm-4.0/lib/c++/v1/ -I/opt/local/libexec/llvm-4.0/lib/c++/ parameters for the C-compiler are needed because a bit further down it will use
$(CC) -x c++ to compile C++ code and without them two includes it will run into errors.
The only thing that bugs me right now is the inability to start the game by clicking on the icon within Finder. I even can't debug this behaviour because the debugger runs the binary from the console and this is working fine. As I said it's the same as with Mapster32. Against all logic it must be something inside the code and not in the application bundle (I did a few tests on that one).