From: Thomas Petazzoni Date: Tue, 17 Oct 2017 23:03:13 +0200 Subject: [Buildroot] [PATCH v3] axel: bump to version 2.15 In-Reply-To: <20171016201221.17376-1-ismael@iodev.co.uk> References: <20171016201221.17376-1-ismael@iodev.co.uk> Message-ID: <20171017230313.3ea69a47@windsurf.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Mon, 16 Oct 2017 17:12:21 -0300, Ismael Luceno wrote: > +AXEL_CFLAGS = -D_POSIX_C_SOURCE=200112L > +# _POSIX_C_SOURCE required to compile against uClibc > +AXEL_CONF_OPTS = \ > + ac_cv_prog_cc_c99=-std=c99 \ > + CFLAGS="$(TARGET_CFLAGS) $(AXEL_CFLAGS)" > +# ac_cv_prog_cc_c99 is required because the C99 test relies on wchar_t Somewhat weird to have the comment *after* the code. I believe it's common practice to have comments *before* the thing being commented. That being said, I still don't understand those lines. Indeed, I've been able to build with your patch applied, minus those custom AXEL_CFLAGS/AXEL_CONF_OPTS with no problem: br-arm-cortex-m4-full [1/5]: OK br-i386-pentium-mmx-musl [2/5]: OK br-powerpc64-power7-glibc [3/5]: OK br-xtensa-full [4/5]: OK mips64el-ctng_n64-linux-gnu [5/5]: OK This has tested 2 uClibc toolchains, 2 glibc toolchains and one musl toolchain, and all succeeded. Could you explain which specific problem you are fixing here with those custom flags, and under which conditions you produce a failure without those flags? Thanks! Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com