From c797facb0803c94c40c05a96fdde8e3d9ec71bba Mon Sep 17 00:00:00 2001 From: Gabriel Terwesten Date: Fri, 15 Sep 2023 21:22:46 +0200 Subject: [PATCH] Pass `-no-pie` --- pkgs/native_toolchain_c/lib/src/cbuilder/run_cbuilder.dart | 1 + 1 file changed, 1 insertion(+) 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',