diff --git a/ressources/Modulations_Numeriques.desktop b/ressources/Modulations_Numeriques.desktop new file mode 100644 index 0000000..4fb30a0 --- /dev/null +++ b/ressources/Modulations_Numeriques.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=Modulations_Numeriques +Comment=Modulations Numeriques +Exec=$HOME/bin/Modulations_Numeriques +Terminal=false +StartupNotify=true diff --git a/secu.mk b/secu.mk new file mode 100644 index 0000000..e251745 --- /dev/null +++ b/secu.mk @@ -0,0 +1,31 @@ +# add security compilation flags there + +GXX_SECURITY_FLAGS = \ + -Wwrite-strings \ + -fPIC \ + -pthread \ + -fstack-protector \ + -fstack-clash-protection \ + -pie -fPIE \ + -D_FORTIFY_SOURCE=2 -O2 -Wl,-z,now \ + -Wformat -Wformat-security + +# -fstack-protector \ +# -fstack-clash-protection \ +# -fstack-protector-strong \ +# -Wwrite-strings -fPIC \ +# -fno-builtin-memset \ +# -pie \ +# -fPIE \ +# -O2 -D_FORTIFY_SOURCE=2 \ +# -Wl,-z,relro \ +# -Wl,-z,now \ +# -Wall -Wformat -Wformat=2 -Wformat-security \ +# -fno-builtin -fno-builtin-function \ +# -D_GLIBCXX_ASSERTIONS \ +# -Wl,-z,nodlopen -Wl,-z,noexecstack \ +# -Wl,--as-needed -Wl,--no-copy-dt-needed-entries + + +EXTRA_CXX_FLAGS += ${GXX_SECURITY_FLAGS} +