GNOME Bugzilla – Bug 747812
unset LDFLAGS when unsetting CFLAGS
Last modified: 2018-06-29 23:40:16 UTC
Created attachment 301498 [details] [review] Fix build in certain circumstances If you're using odd CFLAGS & LDFLAGS, unsetting one without the other can cause a configure failure. Patch attached.
Just for more information - the case I noted where this is needed to fix the build is in Fedora 23 or later, where the default LDFLAGS are set to make position-independent executables, which then rely on the CFLAGS that set -fPIC.
OK, but the place that your patch clears the LDFLAGS is around AC_CHECK_HEADERS, which isn't supposed to link. The patch is harmless, of course, but it should be a no-op. Can you investigate to find out why it isn't?
It should be around AC_CHECK_FUNCS, which does link. I'll double-check that the patch got generated right.
The patch looks correct to me - unsetting before AC_CHECK_FUNCS, restoring afterwards.
Comment on attachment 301498 [details] [review] Fix build in certain circumstances OK, I see where my brain failed. Committed and pushed to maint; it will bubble up to master in a few days. Thanks!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=747812. Please update any external references or bookmarks.