diff --git a/Configurations/00-base-templates.conf b/Configurations/00-base-templates.conf
index 5fd995c..1ac9b73 100644
--- a/Configurations/00-base-templates.conf
+++ b/Configurations/00-base-templates.conf
@@ -3,9 +3,9 @@ my %targets=(
     DEFAULTS => {
        template        => 1,

-       cflags          => "",
+       cflags          => "-fPIC -pie",
        cppflags        => "",
-       lflags          => "",
+       lflags          => "-Wl,-z,now,-z,relro -fPIC",
        defines         => [],
        includes        => [],
        lib_cflags      => "",
@@ -14,6 +14,9 @@ my %targets=(
        thread_scheme   => "(unknown)", # Assume we don't know
        thread_defines  => [],

+    bin_cflags => "-fPIC -pie",
+    bin_lflags => "-pie",
+
        apps_aux_src    => "",
        apps_init_src   => "",
        cpuid_asm_src   => "mem_clr.c",

