Skip to content

Missing build hardening flags. #293

@sorenstoutner

Description

@sorenstoutner

blhc detects a couple of missing build hardening flags.

CFLAGS missing (-fPIE): /usr/bin/cc   -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/feather-wallet-2.8.1+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MT CMakeFiles/generate_translations_header.dir/generate_translations_header.c.o -MF CMakeFiles/generate_translations_header.dir/generate_translations_header.c.o.d -o CMakeFiles/generate_translations_header.dir/generate_translations_header.c.o -c /build/reproducible-path/feather-wallet-2.8.1+dfsg/monero/translations/generate_translations_header.c

LDFLAGS missing (-fPIE -pie): /usr/bin/cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/feather-wallet-2.8.1+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--dependency-file=CMakeFiles/generate_translations_header.dir/link.d CMakeFiles/generate_translations_header.dir/generate_translations_header.c.o -o generate_translations_header

I was able to fix these using the following patch, although there probably is a more elegant way of doing this that I was not able to discover.

https://salsa.debian.org/cryptocoin-team/feather-wallet/-/blob/master/debian/patches/blhc.patch?ref_type=heads

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions