hikari wayland compositor (https://hikari.acmelabs.space)
#2Makefile changes to support more general builds
The attached patch to the Makefile makes a few changes that allow the build process to be more configurable and general. In particular, I am packaging Hikari for Void Linux and need these changes to support cross-compilation for multi-arch packages.
The changes are:
Pull ${CFLAGS_EXTRA} and ${LDFLAGS_EXTRA} from the environment, which allows the user to specify additional CFLAGS and LDFLAGS that will be added to the respective CFLAGS and LDFLAGS variables built up by the Makefile. (Setting CFLAGS or LDFLAGS directly on the command line, at least with NetBSD make, would cause make to ignore all of the appends in the Makefile.)
Add ${CFLAGS_EXTRA} and ${LDFLAGS_EXTRA} to the hikari-unlocker build command, so those flags apply when building that target (this is important in Void cross-compilation, because PAM libs and headers will not generally be in /usr/lib or /usr/include and require specification).
Reorder the command-line arguments when building the hikari and hikari-unlocker targets. Some compilers, like GCC, do not properly find symbols from libraries unless the libraries are listed after the source files that reference them. Libraries should always be listed last.
Add a ${DESTDIR} prefix to all install destinations, empty by default, to allow installation into a chroot environment.
Drop the INSTALL_GROUP and associated -g flag to the install commands. Setting a group explicitly is probably not useful, and can either cause breakage or require manual specification for reasonable behavior. (In Void packaging environments, for example, packages are built as an unprivileged user and the default behavior of grabbing the user's primary group is not correct.) Files are executable or readable by all users anyway and writable only by the owner, so specific group ownership accomplishes nothing for access control.
EDIT: Not sure why I can't upload a patch. The contents are pasted below. Sorry for the hacky approach, but I am not a darcs user and don't know of a better way to offer the changes.
EDIT 2: The text field drops formatting, so pasting the patch doesn't work. I'll try zipping the patch to see if that is allowed.
EDIT 3: No good! I've base64 encoded the patch below. Clip everything below '---BEGIN---' and decode to get the patch.
---BEGIN--- LS0tIE1ha2VmaWxlLm9sZAkyMDIwLTA1LTA2IDEyOjQ5OjI0LjAwMDAwMDAwMCAtMDQwMAorKysg TWFrZWZpbGUJMjAyMC0wNS0wNiAwOTowNDo0OS42OTUzNzE3MzEgLTA0MDAKQEAgLTEsNiArMSw1 IEBACiBPUyAhPSB1bmFtZQogVkVSU0lPTiA/PSAiQ1VSUkVO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Y29uZgotCS1ybWRpciAke0VUQ19QUkVGSVh9L2V0Yy9oaWthcmkKKwktcm0gJHtERVNURElS fS8ke1BSRUZJWH0vYmluL2hpa2FyaQorCS1ybSAke0RFU1RESVJ9LyR7UFJFRklYfS9iaW4vaGlr YXJpLXVubG9ja2VyCisJLXJtICR7REVTVERJUn0vJHtQUkVGSVh9L3NoYXJlL21hbi9tYW4xL2hp a2FyaS4xCisJLXJtICR7REVTVERJUn0vJHtFVENfUFJFRklYfS9ldGMvcGFtLmQvaGlrYXJpLXVu bG9ja2VyCisJLXJtICR7REVTVERJUn0vJHtFVENfUFJFRklYfS9ldGMvaGlrYXJpL2hpa2FyaS5j b25mCisJLXJtZGlyICR7REVTVERJUn0vJHtFVENfUFJFRklYfS9ldGMvaGlrYXJpCg==
- description updated
- description updated
- description updated
Can you just send me this via E-Mail please?
I'm looking at this right now. Need to make a couple of tests for but thanks for the patch. Anyway, next time just drop me a mail ^^. It's in the patch log :)
- status set to closed
Patch has been pushed. Thanks again.
Will do, thanks for taking a look.
Staged for 2.0.0