Initial patch, currently test compiling, I hope I have enough space. ** Patch added: "external-flags.patch" https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/2073128/+attachment/5812818/+files/external-flags.patch
-- You received this bug notification because you are a member of Desktop Packages, which is subscribed to libreoffice in Ubuntu. https://bugs.launchpad.net/bugs/2073128 Title: Missing compiler flags Status in libreoffice package in Ubuntu: New Bug description: While evaluating libreoffice for the -fno-omit-frame-pointer option presence we identified the following files as having missing flags: libreoffice-core: /usr/lib/libreoffice/program/libstaroffice-0.0-lo.so.0 - All compilations units. libreoffice-draw: /usr/lib/libreoffice/program/libwpftdrawlo.so Various files with relative paths ending in .cpp as - ZMFDocument.cpp - BMIHeader.cpp - BMIParser.cpp - "BMITypes.cpp" - "ZBRHeader.cpp" ⁻ "ZBRParser.cpp" - "ZMF4Header.cpp" - "ZMF4Parser.cpp" It's worth noting that there are some files that do have all the flags; these are specified using absolute file paths and their paths end in .cxx instead of .cpp, such as "/usr/src/libreoffice-4:24.2.4-0ubuntu0.24.04.1/writerperfect/source/draw/CDRImportFilter.cxx" Further investigation is needed why this is failing for these compilation units. Note that this also downgrades some security features: .cxx files are compiled with "GNU C++20 13.2.0 -mno-omit-leaf-frame-pointer -mtune=generic -march=x86-64 -g -O2 -std=c++20 -fvisibility=hidden -finput- charset=UTF-8 -fmessage-length=0 -fno-common -fvisibility-inlines- hidden -fPIC -fno-omit-frame-pointer -fstack-protector-strong -fcf- protection=full -fexceptions -fno-enforce-eh-specs -fasynchronous- unwind-tables -fstack-protector-strong -fstack-clash-protection" .cpp files with "GNU C++20 13.2.0 -mtune=generic -march=x86-64 -ggdb2 -O2 -std=c++20 -finput-charset=UTF-8 -fmessage-length=0 -fno-common -fvisibility- inlines-hidden -fvisibility=hidden -fPIC -fasynchronous-unwind-tables -fstack-protector-strong -fstack-clash-protection -fcf-protection" So -fcf-protection=full is downgraded to just strong -fcf-protection Note that this does not include preprocessor flags, only compilation flags. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/2073128/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp