This bug was fixed in the package libreoffice - 4:24.8.0-0ubuntu2
---------------
libreoffice (4:24.8.0-0ubuntu2) oracular; urgency=medium
* Pass CFLAGS, CXXFLAGS, CPPFLAGS, and LDFLAGS to external projects
(LP: #2073128)
-- Julian Andres Klode <[email protected]> Tue, 03 Sep 2024 15:38:30
+0200
** Changed in: libreoffice (Ubuntu)
Status: Fix Committed => Fix Released
--
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:
Fix Released
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 : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp