diff --git a/srcpkgs/gdb/template b/srcpkgs/gdb/template index d335bb4a16f..2356cadc808 100644 --- a/srcpkgs/gdb/template +++ b/srcpkgs/gdb/template @@ -25,8 +25,8 @@ if [ "${CROSS_BUILD}" ]; then CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}" CXXFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}" fi -CFLAGS+=" -fcommon" -CXXFLAGS+=" -fcommon" +CFLAGS+=" -fcommon -Wno-error" +CXXFLAGS+=" -fcommon -Wno-error" # Package build options build_options="gdbserver static python" desc_option_gdbserver="Enable support for building GDB server" @@ -41,7 +41,8 @@ post_extract() { } do_configure() { cd ${wrksrc}/build - ../configure ${configure_args/with-sysroot/with-build-sysroot} + ../configure ${configure_args/with-sysroot/with-build-sysroot} \ + CFLAGS_FOR_BUILD="${CFLAGS_FOR_BUILD} -fcommon" export gl_cv_func_gettimeofday_clobber=no export gl_cv_func_working_strerror=yes export gl_cv_func_strerror_0_works=yes