Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use top_builddir instead of ROOT #40

Closed
wants to merge 1 commit into from

Conversation

proski
Copy link

@proski proski commented Feb 1, 2023

Building with MSYS2 was failing due to the command line for linking glib DLL exceeding the sh.exe limit of 8192 bytes. When sh.exe from MSYS2 was present in PATH, gmake would use it and run a truncated command.

Using relative filenames shortens that command line to about 5k regardless of the source directory location.

The use of absolute paths to any files in the build directory should be strongly discouraged, as the build should not keep memory of the location where it was built.

Replace ROOT with top_builddir everywhere. The ROOT variable was not named correctly, the standard name is abs_top_builddir and it remains available in case it's ever needed.

Building with MSYS2 was failing due to the command line for linking glib
DLL exceeding the sh.exe limit of 8192 bytes. When sh.exe from MSYS2 was
present in PATH, gmake would use it and run a truncated command.

Using relative filenames shortens that command line to about 5k
regardless of the source directory location.

The use of absolute paths to any files in the build directory should be
strongly discouraged, as the build should not keep memory of the location
where it was built.

Replace ROOT with top_builddir everywhere. The ROOT variable was not
named correctly, the standard name is abs_top_builddir and it remains
available in case it's ever needed.
@proski
Copy link
Author

proski commented Feb 1, 2023

With this issue resolved, we won't need GnuWin32 anymore, we could recommend Git for Windows or MSYS2. Since they both have sh.exe in the same directory as other necessary utilities, the build system should be able to deal with it.

@adamyg
Copy link
Owner

adamyg commented Feb 5, 2023

nothing against ROOT ?=@top_builddir@; also considering @SET_ROOT@
793f527 implements the expected top_srcbuild/top_builddir behavior (when equiv).
Replacing ROOT impacts other projects and numerous other Makefiles; need to consider impact.

@proski
Copy link
Author

proski commented Feb 5, 2023

Closing in favor of #43

@proski proski closed this Feb 5, 2023
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