Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728158 - sys-fs/mergerfs does not respect CFLAGS/LDFLAGS
Summary: sys-fs/mergerfs does not respect CFLAGS/LDFLAGS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Piotr Karbowski
Depends on:
Blocks: cflags ldflags
  Show dependency tree
Reported: 2020-06-13 20:32 UTC by Agostino Sarubbo
Modified: 2020-08-08 20:00 UTC (History)
1 user (show)

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

build.log (build.log,42.02 KB, text/plain)
2020-06-13 20:32 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-06-13 20:32:26 UTC
@@This is an auto-filed bug@@
If you think that a different summary clarifies the issue better, feel free to change it.

Issue: sys-fs/mergerfs does not respect CFLAGS/LDFLAGS.
Discovered on: amd64

To reproduce this issue you may want to add "-frecord-gcc-switches" to CFLAGS/CXXFLAGS/FFLAGS/FCFLAGS and LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0". If this is not something about c/c++ see this bug as an hint to hide the QA warning (with QA_FLAGS_IGNORED) where is not possible to respect CFLAGS/LDFLAGS.
Comment 1 Agostino Sarubbo gentoo-dev 2020-06-13 20:32:31 UTC
Created attachment 644596 [details]

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2020-08-08 20:00:35 UTC
The bug has been closed via the following commit(s):

commit 4862dc8bd86bb9810de3088b4ffacc42015736f0
Author:     Piotr Karbowski <>
AuthorDate: 2020-08-08 19:59:01 +0000
Commit:     Piotr Karbowski <>
CommitDate: 2020-08-08 20:00:27 +0000

    sys-fs/mergerfs: 2.30.0 bump
    Version bump; Now uses environmental provided AR, CFLAGS, CXXFLAGS and LDFLAGS.
    Signed-off-by: Piotr Karbowski <>

 sys-fs/mergerfs/Manifest                           |  1 +
 ...akefiles-fixes-ar-cflags-cxxflags-ldflags.patch | 83 ++++++++++++++++++++++
 sys-fs/mergerfs/mergerfs-2.30.0.ebuild             | 56 +++++++++++++++
 3 files changed, 140 insertions(+)