Skip to content

Broken CFLAGS #146

@marmitar

Description

@marmitar

Current CFLAGS does not add the necessary space before -Wall:

x*g++*|x*clang++*) CXXFLAGS="${CXXFLAGS}-Wall -Wextra"; CFLAGS="${CFLAGS}-Wall -Wextra";;

When building the Arch Linux package (cadical), makepkg will add CFLAGS automatically (see makepkg.conf), which results in a compiler error:

g++: error: unrecognized command-line option ‘-mno-omit-leaf-frame-pointer-Wall’; did you mean ‘-mno-omit-leaf-frame-pointer’?
make[1]: *** [makefile:53: kitten.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/makepkg/cadical/src/cadical-rel-2.2.0/build'
make: *** [makefile:3: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'cadical-2.2.0-1': 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions