Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3C00FC3ABC9 for ; Tue, 13 May 2025 20:05:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id DDAA54122B; Tue, 13 May 2025 20:05:02 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id QLTevuXn7WFU; Tue, 13 May 2025 20:05:02 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 2D691411BA Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 2D691411BA; Tue, 13 May 2025 20:05:02 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists1.osuosl.org (Postfix) with ESMTP id 6E15312A for ; Tue, 13 May 2025 20:05:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5F76560F31 for ; Tue, 13 May 2025 20:05:01 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id XHxJnBTMUrzA for ; Tue, 13 May 2025 20:05:00 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=85.13.140.57; helo=dd20012.kasserver.com; envelope-from=bernd@kuhls.net; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 4FD0260E0D DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 4FD0260E0D Received: from dd20012.kasserver.com (dd20012.kasserver.com [85.13.140.57]) by smtp3.osuosl.org (Postfix) with ESMTPS id 4FD0260E0D for ; Tue, 13 May 2025 20:05:00 +0000 (UTC) Received: from fli4l.lan.fli4l (p5b3a074a.dip0.t-ipconnect.de [91.58.7.74]) by dd20012.kasserver.com (Postfix) with ESMTPSA id 355CFA4C05E9 for ; Tue, 13 May 2025 22:04:58 +0200 (CEST) Received: from bruckner.lan.fli4l ([192.168.1.1]:39814) by fli4l.lan.fli4l with esmtp (Exim 4.98.2) (envelope-from ) id 1uEvs2-000000006DF-0AcD for buildroot@buildroot.org; Tue, 13 May 2025 20:04:57 +0000 From: Bernd Kuhls To: buildroot@buildroot.org Date: Tue, 13 May 2025 22:04:57 +0200 Message-Id: <20250513200457.2731883-1-bernd@kuhls.net> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-Spamd-Bar: + X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kuhls.net; s=kas202412041019; t=1747166698; bh=YM3cV8saw/Z/IvWAdTG5SupG+wWYM768/pt4+warr5E=; h=From:To:Subject:Date:From; b=bg9aI+YTr4X0cbVxjD/MHe4VAeuNItzAYKbM6gHnRNI/VFg9bfcb0yIXQXMOlSmnL D84Up2bPhBq52gePvD8wFfJQhqhAiYuiFVJzEue48uJ2Guc49ZhDAnVIgvVG0U4vQG vwItQryr/7BNr0MCuyad25irpUWmfQBWoL8cG53LqrX7Xi/JZjUZS/FahRLHR9Qyxs nipMbg3UeVzo2tQSXNuEu9NVMJFG0D73SBOQ0/bM7muFX6rQiBfHmM2aBOwSqPlOyc g/AH/5488YHDGCeB6IaHGKedT8zg+uUdhAg0u3Jv7s/QTsMWURomNggzzEBvA7Hb2A /xPv+BrE3hETQ== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=kuhls.net X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=kuhls.net header.i=@kuhls.net header.a=rsa-sha256 header.s=kas202412041019 header.b=bg9aI+YT Subject: [Buildroot] [PATCH v2] package/unixodbc: fix build with gcc-15.x X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Inspired by https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-db/unixODBC?id=b5629b3aefd8633d378beea7e955d66ce709bebe Signed-off-by: Bernd Kuhls --- v2: fix for older gcc versions (Julien) package/unixodbc/unixodbc.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/unixodbc/unixodbc.mk b/package/unixodbc/unixodbc.mk index 28f1e5bc94..302b964a44 100644 --- a/package/unixodbc/unixodbc.mk +++ b/package/unixodbc/unixodbc.mk @@ -12,6 +12,12 @@ UNIXODBC_LICENSE = LGPL-2.1+ (library), GPL-2.0+ (programs) UNIXODBC_LICENSE_FILES = COPYING exe/COPYING UNIXODBC_CPE_ID_VENDOR = unixodbc +# gcc-15 defaults to -std=gnu23 which introduces build failures. +# We force "-std=gnu17" for gcc version supporting it. Earlier gcc +# versions will work, since they are using the older standard. +ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),y) +UNIXODBC_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=gnu17" +endif UNIXODBC_CONF_OPTS = --enable-drivers --enable-driver-conf ifeq ($(BR2_PACKAGE_LIBEDIT),y) -- 2.39.5 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot