Browse Source

"Fixed" Unreal Linking Bug

Galavant-Unreal was having a problem linking related to the STL. As it turns out, Unreal is linking against libc++, which is [broken on Ubuntu 16.04](http://stackoverflow.com/questions/37096062/get-a-basic-c-program-to-compile-using-clang-on-ubuntu-16/38385967#38385967). I changed the Jamrules so that it now links to libc++ (after the fiasco which was installing and hacking into libc++ locally).
Unfortunately, this broke linking my test projects because libc++ (or at least my local libc++) [doesn't have full STL support](http://stackoverflow.com/questions/7016730/compiling-with-clang-using-libc-undefined-references). This means editing the Jamrules every time you want to switch from compiling libGala* for Unreal to building unit tests. I'll eventually get this sorted out.
combatComponentRefactor
Macoy Madson 6 years ago
parent
commit
220c4b5219
  1. 12
      Jamrules

12
Jamrules

@ -1,15 +1,17 @@
CC = gcc ;
C++ = g++ ;
LINK = g++ ;
#C++ = clang++ ;
#LINK = clang++ ;
#C++ = g++ ;
#LINK = g++ ;
C++ = clang++ ;
LINK = clang++ ;
# Galavant requires C++11
# fPIC = position independent code. This is so the lib can be linked in other libs/executables
# g = debug symbols
# lstdc++ = standard library
# -stdlib=lib++ = Unreal uses fucking libc++, which is busted on Ubuntu 16.04. Remove this option if you don't
# give a shit about Unreal and/or want to build the tests
# Og = compile without optimizations for debugging
C++FLAGS = -std=c++11 -fPIC -g -Og -Wall -Wextra ;
C++FLAGS = -std=c++11 -stdlib=libc++ -fPIC -g -Og -Wall -Wextra ;
OBJECTC++FLAGS = -std=c++11 -lstdc++ -g -Og ;
HDRS = thirdParty/flatbuffers/include ;

Loading…
Cancel
Save