From 7896157956ae7f038074df14f0f9016844d1a53f Mon Sep 17 00:00:00 2001 From: Julien Staub Date: Fri, 22 Aug 2025 11:08:36 +0200 Subject: [PATCH] enable gc-section --- DFTFringe.pro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DFTFringe.pro b/DFTFringe.pro index 2cb9728a..01cc0776 100644 --- a/DFTFringe.pro +++ b/DFTFringe.pro @@ -20,6 +20,10 @@ qtHaveModule(printsupport): QT += printsupport QMAKE_CXXFLAGS += -std=c++17 +# Enable function/data sectioning and garbage collection by linker. +QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections +QMAKE_LFLAGS += -Wl,--gc-sections + # disable qDebug() in release CONFIG( release, debug|release ) { message("Release build")