diff --git a/pkgs/native_toolchain_c/lib/src/cbuilder/run_cbuilder.dart b/pkgs/native_toolchain_c/lib/src/cbuilder/run_cbuilder.dart index 801504c58..b5e137044 100644 --- a/pkgs/native_toolchain_c/lib/src/cbuilder/run_cbuilder.dart +++ b/pkgs/native_toolchain_c/lib/src/cbuilder/run_cbuilder.dart @@ -168,6 +168,7 @@ class RunCBuilder { if (compiler.tool == clang) ...[ '-z', 'notext', + if (executable != null) '-no-pie', ] ], if (std != null) '-std=$std',