You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
g++ -o demo/bin/x11/libgdexample.so -shared godot-cpp/src/gdexample.os godot-cpp/src/gdlibrary.os -Lgodot-cpp/bin -Lpoly2tri/build -lgodot-cpp.linux.debug.64 -lpoly2tri
/bin/ld: poly2tri/build/libpoly2tri.a(shapes.cc.o): relocation R_X86_64_PC32 against symbol `_ZSt4cout@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
scons: *** [demo/bin/x11/libgdexample.so] Error 1
scons: building terminated because of errors.
Is there an option to add a compilation setting for Godot that has -fPIC?
Adding set(CMAKE_POSITION_INDEPENDENT_CODE ON) to CMakeLists.txt works.
I am using Godot right now.
The text was updated successfully, but these errors were encountered: