Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 756697 - app-office/libreoffice- overrides CFLAGS even when custom-cflags is set
Summary: app-office/libreoffice- overrides CFLAGS even when custom-cflags is set
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
Depends on:
Blocks: cflags
  Show dependency tree
Reported: 2020-11-25 13:17 UTC by Mike Lothian
Modified: 2020-12-10 21:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lothian 2020-11-25 13:17:07 UTC
In the below example "-O2 -w" is set after "-O3 -pipe -flto=thin -march=native" 

The -O2 will override the former -O3

S=/var/tmp/portage/app-office/libreoffice- && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/GenCxxObject/UnpackedTarball/skia/src/utils/ $W/Dep/GenCxxObject/UnpackedTarball/skia/src/utils/ && cd /var/tmp/portage/app-office/libreoffice- && CCACHE_CPP2=1           x86_64-pc-linux-gnu-clang++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DENABLE_LTO -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT  -DSKIA_IMPLEMENTATION=1 -DSKIA_DLL -DSK_USER_CONFIG_HEADER="<$S/config_host/config_skia.h>"  -DSYSTEM_ZLIB  -flto -fvisibility=hidden         -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wunused-macros -Wembedded-directive -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe -fstack-protector-strong -fdiagnostics-color=always -Wdeprecated-copy-dtor -Wimplicit-fallthrough -Wunused-exception-parameter -Wrange-loop-analysis -fvisibility-inlines-hidden -fPIC -Wshadow -Woverloaded-virtual -std=c++17 -pthread -O3 -pipe -flto=thin -march=native -DEXCEPTIONS_ON -fexceptions -O2 -w -DLIBO_INTERNAL_ONLY  -c $W/UnpackedTarball/skia/src/utils/SkShaperJSONWriter.cpp -o $W/GenCxxObject/UnpackedTarball/skia/src/utils/SkShaperJSONWriter.o  -I$S/include  -I/usr/lib64/openjdk-11/include -I/usr/lib64/openjdk-11/include/linux -I$S/config_host     -isystem /usr/include/freetype2 -isystem /usr/include/harfbuzz -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include     -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -isystem /usr/include/libpng16  -I$W/UnpackedTarball/skia -I$W/UnpackedTarball/skia/include/third_party/skcms/ -I$W/UnpackedTarball/skia/third_party/vulkanmemoryallocator/ -I$W/UnpackedTarball/skia/include/third_party/vulkan/ -I$S/external/skia/inc/

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2020-12-10 21:58:17 UTC
The bug has been closed via the following commit(s):

commit c9ae50a3def564d0aa28719dcc244c211c1fdd8c
Author:     Andreas K. Hüttel <>
AuthorDate: 2020-12-10 21:57:57 +0000
Commit:     Andreas K. Hüttel <>
CommitDate: 2020-12-10 21:57:57 +0000

    app-office/libreoffice: Contribute to global warming
    When USE=custom-cflags is set, do not manipulate CFLAGS at all.
    The build may well fail halfway through, but hey, it's just entropy.
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Andreas K. Hüttel <>

 app-office/libreoffice/libreoffice-  | 1 -
 app-office/libreoffice/libreoffice-7.0.9999.ebuild | 1 -
 app-office/libreoffice/libreoffice-9999.ebuild     | 1 -
 3 files changed, 3 deletions(-)