Skip to content

CMAKE: fix build for CYGWIN#8247

Open
carlo-bramini wants to merge 4 commits intoLMMS:masterfrom
carlo-bramini:fix-cygwin-build
Open

CMAKE: fix build for CYGWIN#8247
carlo-bramini wants to merge 4 commits intoLMMS:masterfrom
carlo-bramini:fix-cygwin-build

Conversation

@carlo-bramini
Copy link

@carlo-bramini carlo-bramini commented Feb 4, 2026

I compiled latest sources of LMMS for CYGWIN and I'm contributing few changes.
I added an identifier LMMS_BUILD_CYGWIN for this platform because it failed to link the final executable.
Infact, the -Wl,--enable-new-dtags is supported only for ELF executables, so I had to avoid this event.
Next, I added WINMM also for CYGWIN because it's perfectly able to build and use it.
Finally, CYGWIN also needs the -Wa,-mbig-obj flag like MINGW, otherwise an error will be printed.

At the end, LMMS can be compiled and executed on CYGWIN without troubles.
lmms-cygwin

I hope that you will find this report useful.

Copy link
Contributor

@JohannesLorenz JohannesLorenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the submission!

I approve:

  • functional OK
  • style OK

@JohannesLorenz
Copy link
Contributor

@carlo-bramini Before we merge this, do you want to add a documentation about how to get it compiled for CYGWIN, or even add a CI? I ask because you now have the experience, and it would be sad if it gets lost 😆

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