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

Makefile: Honour CC, CFLAGS #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brlin-tw
Copy link
Contributor

@brlin-tw brlin-tw commented May 17, 2018

This patch honours CC, CFLAGS environment variables when building
src/bindtextdomain.c.

This allows snaps to override it with different toolchains.

~~This patch is NOT tested~, please review.

UPDATE: This patch has been verified to build successfully in my LXD container.

Signed-off-by: 林博仁(Buo-ren Lin) Buo.Ren.Lin@gmail.com

This patch honours CC, CFLAGS environment variables when building
src/bindtextdomain.c.

This allows snaps to override it with different toolchains.

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
@oSoMoN
Copy link
Member

oSoMoN commented May 29, 2018

I wonder if that's really desirable. If a snap build uses custom flags (or even a different compiler) that trigger an obscure compiler bug, the risk is that two snaps that use the same helper will behave differently.

Also, if you change the value of CC, there's no guarantee the custom compiler will be installed with the build-packages.

@brlin-tw
Copy link
Contributor Author

brlin-tw commented May 29, 2018

If a snap build uses custom flags (or even a different compiler) that trigger an obscure compiler bug, the risk is that two snaps that use the same helper will behave differently.

Well, one can always force using the bugless compiler in these cases. The patch's is created upon the fact that I'm not sure that the desktop-helper will work properly with other parts as my package requires GCC >6 instead of the pre-installed version of GCC5 provided by Ubuntu 16.04 so I simply switch all of the toolchains that are used to build the parts, which, without this patch, not possible harder with snapcraft-desktop-helpers

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