diff --git a/tutorials/plugins/gdnative/gdnative-c-example.rst b/tutorials/plugins/gdnative/gdnative-c-example.rst index cd30b6106..ee7420356 100644 --- a/tutorials/plugins/gdnative/gdnative-c-example.rst +++ b/tutorials/plugins/gdnative/gdnative-c-example.rst @@ -361,8 +361,8 @@ On Linux: .. code-block:: none - gcc -std=c11 -fPIC -c -I../../godot_headers simple.c -o simple.os - gcc -shared simple.os -o ../bin/libsimple.so + gcc -std=c11 -fPIC -c -I../../godot_headers simple.c -o simple.o + gcc -rdynamic -shared simple.o -o ../bin/libsimple.so On macOS: