diff --git a/compiler/ppcwasm32.lpi b/compiler/ppcwasm32.lpi
index 4a44dbc33f..bdbbac71b6 100644
--- a/compiler/ppcwasm32.lpi
+++ b/compiler/ppcwasm32.lpi
@@ -65,12 +65,14 @@
-
+-dDEBUG_WASM_GOTO
+-dENABLE_WASM_INTERNAL_LINKER"/>
+
+
diff --git a/compiler/systems/i_wasi.pas b/compiler/systems/i_wasi.pas
index a3bc45592c..e875fd0c99 100644
--- a/compiler/systems/i_wasi.pas
+++ b/compiler/systems/i_wasi.pas
@@ -79,7 +79,11 @@ unit i_wasi;
dirsep : '/';
assem : as_wasm32_wasm;
assemextern : as_wasm32_llvm_mc;
+{$ifdef ENABLE_WASM_INTERNAL_LINKER}
+ link : ld_int_wasi;
+{$else ENABLE_WASM_INTERNAL_LINKER}
link : ld_none;
+{$endif ENABLE_WASM_INTERNAL_LINKER}
linkextern : ld_wasi;
ar : ar_none;
res : res_none;