Skip to content

Add cflags/cxxflags to the handbrake build #8074

Open

Description

@juanitotc

Description of the feature or enhancement you'd like to see in HandBrake

I would like to be able to pass the cflags/cxxflags "-march=armv8-a+crc -mtune=cortex-a72 -Os" to the handbrake build, but when I try using CFLAGS/CXXFLAGS or CC/CXX it is ignored by some parts of the build process.

Would it be possible to pass flags to all parts of the build process?

What Operating System are you running?

piCore64

What version of HandBrake are you running?

1.11.2

Where did you download HandBrake from?

github

Activity Log, Crash Log or any other details

n/a

Activity

  1. marcosfrm commented on Aug 31, 2026

    @marcosfrm
    Contributor

    You can patch it locally:

    GCC.args.extra =
    ifeq ($(HOST.machine),$(filter $(HOST.machine),i686 x86_64))
    GCC.args.extra += -mfpmath=sse -msse2
    endif

  2. juanitotc commented on Sep 2, 2026

    @juanitotc
    Author

    Thanks - I set it as below and also set CFLAGS to the same thing.

    Basically the flags seem to be used in some parts of the build and not others?

    GCC.args.extra         = -march=armv8-a+crc -mtune=cortex-a72
    ifeq ($(HOST.machine),$(filter $(HOST.machine),i686 x86_64))
        GCC.args.extra    += -mfpmath=sse -msse2
    endif
    

    BTW, if I use the latest release tarball, configure fails and I am obliged to use git clone:

    probe: repo info...(fail) code 1
    probe: version.txt...(fail)
    
    ERROR: HandBrake is missing version information it needs to build properly.
    Clone the official git repository at https://github.com/HandBrake/HandBrake.git
    or download an official source archive from https://handbrake.fr
    
  3. hnsteyding commented on Sep 2, 2026

    @hnsteyding
    Contributor

    TW, if I use the latest release tarball, configure fails and I am obliged to use git clone:

    probe: repo info...(fail) code 1
    probe: version.txt...(fail)

    ERROR: HandBrake is missing version information it needs to build properly.
    Clone the official git repository at https://github.com/HandBrake/HandBrake.git
    or download an official source archive from https://handbrake.fr

    I think you have to clone the "1.11.2" branch/tag to get the latest HandBrake release source code:
    git clone -b 1.11.2 https://github.com/HandBrake/HandBrake.git HandBrake-1.11.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions