From 283029ebc5d05ba55dd0a060b07911595cb0357f Mon Sep 17 00:00:00 2001 From: erba Date: Mon, 26 Jan 2026 14:33:15 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20.desktop=20et=20de=20secu.mk=20oub?= =?UTF-8?q?li=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ressources/Modulations_Numeriques.desktop | 8 ++++++ secu.mk | 31 +++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 ressources/Modulations_Numeriques.desktop create mode 100644 secu.mk 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} +