Przeglądaj źródła

Merge pull request #3096 from godotengine/vnen-gdnative-c-gcc

Fix gcc compilation flags for GDNative with C example
Rémi Verschelde 5 lat temu
rodzic
commit
84b1545dd3

+ 2 - 2
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: