strptrk
2bf9bd0621
Hi, After some experimentation and digging in the firefox repository I realized that the commas in _link-arg_ are the cause of the error. Also, correct me if I'm wrong here, but you do not have to pass -Wl to the linker, cargo handles that. Plus, according to the [documentation](https://doc.rust-lang.org/rustc/codegen-options/index.html#link-arg), it is possible to pass _link-arg_ multiple times to achieve the same result. I managed to build firefox locally with this change, so I guess this should work here as well. Reviewed-on: #217 Co-authored-by: strptrk <git@patrikstier.com> Co-committed-by: strptrk <git@patrikstier.com>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
# template values get replaced on makepkg.conf generation
|
|
# $level$ -> march x86-64 level, e.g. v3
|
|
# $march$ -> full march, e.g. x86-64-v3
|
|
# $buildproc$ -> number of threads to build with
|
|
|
|
common:
|
|
cflags:
|
|
- "-mtune=generic": ~
|
|
- "-O2": "-O3"
|
|
- "-mpclmul" # https://somegit.dev/ALHP/ALHP.GO/issues/92
|
|
- "-march=x86-64": "-march=$march$"
|
|
|
|
options:
|
|
- "lto": "!lto" # disable lto; see 'lto' section below
|
|
|
|
buildenv:
|
|
- "color": "!color" # color messes up the log output
|
|
|
|
goamd64: "$level$" # https://somegit.dev/ALHP/ALHP.GO/issues/116
|
|
packager: "ALHP $march$ <alhp@harting.dev>"
|
|
makeflags: "-j$buildproc$"
|
|
# https://somegit.dev/ALHP/ALHP.GO/issues/110
|
|
rustflags: "-Copt-level=3 -Ctarget-cpu=$march$ -Clink-arg=-z -Clink-arg=pack-relative-relocs"
|
|
ltoflags:
|
|
- "-falign-functions=32" # https://github.com/InBetweenNames/gentooLTO/issues/164
|
|
kcflags: " -march=$march$ -O3"
|
|
kcppflags: " -march=$march$ -O3"
|
|
fcflags: "$CFLAGS"
|
|
fflags: "$CFLAGS"
|
|
ldflags:
|
|
- "-z,pack-relative-relocs"
|
|
|
|
lto:
|
|
rustflags:
|
|
- "-Ccodegen-units=1"
|
|
|
|
options:
|
|
- "!lto": "lto"
|
|
|
|
cargo_profile_release_lto: "fat" |