]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
mympd: Don't overwrite our own hardening flags
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 Feb 2024 16:45:38 +0000 (16:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Feb 2024 14:23:32 +0000 (14:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/mympd

index ffedcdcce12ac4cd12c916ceab70ab17982860fc..9a43ac6b7dcb7bd4303f831ab3ce32099674b9eb 100644 (file)
--- a/lfs/mympd
+++ b/lfs/mympd
@@ -82,6 +82,10 @@ $(subst %,%_BLAKE2,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+
+       # Do not try to re-define _FORTIFY_SOURCE
+       cd $(DIR_APP) && sed -e "/D_FORTIFY_SOURCE/d" -i CMakeLists.txt
+
        cd $(DIR_APP) && mkdir -p build
        cd $(DIR_APP)/build && cmake -Wno-dev \
                -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..