Skip to content

fix(build): prefer make over mingw32-make on non-Windows hosts - #765

Merged
ReenigneArcher merged 1 commit into
LizardByte:masterfrom
luanweslley77:fix/make-discovery-order
Aug 30, 2026
Merged

fix(build): prefer make over mingw32-make on non-Windows hosts#765
ReenigneArcher merged 1 commit into
LizardByte:masterfrom
luanweslley77:fix/make-discovery-order

Conversation

@luanweslley77

Copy link
Copy Markdown
Contributor

Description

find_program(MAKE_EXECUTABLE) searches mingw32-make before make for every non-FreeBSD host. On Linux machines with the MinGW packages installed (a common setup for cross-building LizardByte projects for Windows), mingw32-make is found first and the x264/FFmpeg install steps then resolve their install paths into the MinGW sys-root, failing with permission errors:

install: cannot create regular file '/usr/i686-w64-mingw32/sys-root/mingw/include/x264.h': Permission denied

This keeps mingw32-make first on Windows and prefers make/gmake elsewhere. Validated on a Fedora host with /bin/mingw32-make installed: configure now reports Found make: /bin/make and the full dependency build completes.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes to affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

See our AI usage policy.

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@luanweslley77
luanweslley77 marked this pull request as ready for review August 29, 2026 14:08
Comment thread CMakeLists.txt Outdated
find_program searched mingw32-make before make for every non-FreeBSD
host. On Linux machines with the MinGW packages installed (a common
setup for cross-building for Windows), mingw32-make is found first and
the x264/FFmpeg install steps resolve their install paths into the
MinGW sys-root, failing with permission errors. Keep mingw32-make
first on Windows and prefer make/gmake elsewhere.
@luanweslley77
luanweslley77 force-pushed the fix/make-discovery-order branch from 94ed0ab to 16dc5bb Compare August 30, 2026 09:40
@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit 683eaba into LizardByte:master Aug 30, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants