get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2227077/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2227077,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2227077/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/6259829.lOV4Wx5bFT@arcturus/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/17/?format=api",
        "name": "GNU Compiler Collection",
        "link_name": "gcc",
        "list_id": "gcc-patches.gcc.gnu.org",
        "list_email": "gcc-patches@gcc.gnu.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<6259829.lOV4Wx5bFT@arcturus>",
    "date": "2026-04-23T07:31:07",
    "name": "Honor LDFLAGS_FOR_TARGET for shared libgcc on Windows",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a9668b92f7d66b11f9525aabb01926d187875160",
    "submitter": {
        "id": 78832,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/78832/?format=api",
        "name": "Eric Botcazou",
        "email": "botcazou@adacore.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/6259829.lOV4Wx5bFT@arcturus/mbox/",
    "series": [
        {
            "id": 501155,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501155/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501155",
            "date": "2026-04-23T07:31:07",
            "name": "Honor LDFLAGS_FOR_TARGET for shared libgcc on Windows",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501155/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227077/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227077/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256\n header.s=google header.b=ctdrAlxP;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org;\n\tdkim=pass (2048-bit key,\n secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256\n header.s=google header.b=ctdrAlxP",
            "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=adacore.com",
            "sourceware.org; spf=pass smtp.mailfrom=adacore.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=209.85.128.49"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g1Sfv747Zz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 17:40:07 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 1F41C4B8E079\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 07:40:06 +0000 (GMT)",
            "from mail-wm1-f49.google.com (mail-wm1-f49.google.com\n [209.85.128.49])\n by sourceware.org (Postfix) with ESMTPS id 5F2664BA7980\n for <gcc-patches@gcc.gnu.org>; Thu, 23 Apr 2026 07:39:23 +0000 (GMT)",
            "by mail-wm1-f49.google.com with SMTP id\n 5b1f17b1804b1-4896c22fcbaso36203975e9.0\n for <gcc-patches@gcc.gnu.org>; Thu, 23 Apr 2026 00:39:23 -0700 (PDT)",
            "from arcturus.localnet ([78.240.212.105])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488fc18bccfsm457030915e9.8.2026.04.23.00.39.21\n for <gcc-patches@gcc.gnu.org>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 23 Apr 2026 00:39:21 -0700 (PDT)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 1F41C4B8E079",
            "OpenDKIM Filter v2.11.0 sourceware.org 5F2664BA7980"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 5F2664BA7980",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 5F2664BA7980",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776929963; cv=none;\n b=EpluZGxx0uG6/o/VbwRZ8wzPnpU87xr2jn9oddJfGtGeLkrYEs6KpUiZqL6oy33hE9UcqjCD0ZbQHuzzHhFWUNwVAmiWNdws2BiOLBOF5Pnq40MaIEqAW1CtaxnwvzTMefi4ZrjhgM4InHjx77+1fWDxx0sRD1S2ESrP7Z6OwC8=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776929963; c=relaxed/simple;\n bh=/fZtn3TkhfI0aQFuAwxvMa9OR4puJP/ylbsVEYTLWUg=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=N3oq0NLmM2RW6GzywkjkrczK4xgZ9OJJ29wie285OCOZ2GOZ1cgdAO3zRMcnyIi3hkHqRHC+TiKexXKv/UgKgyQZFkt3S4QuNhgrYqAt559CntmFGRXzklzExhD14K+cgxRfdInDhqLhdpO5TRb8EP0Uq5TJky1Dnhc1JFouWKM=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=adacore.com; s=google; t=1776929962; x=1777534762; darn=gcc.gnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:from:to:cc:subject:date:message-id:reply-to;\n bh=PBF/GhlNTkJEwAwgVAkV3bCoR4aZon56uf4cE39ZuB8=;\n b=ctdrAlxPO4Q92sw/9sLHrv0JKwNcUdVAYJ3/Em72EXE8m2d0iM5/PXEDq9L2o14Hxs\n UcLRqn63Vl3NExEafkmEuIbGqa9VWbM/Jg7mGKZg5zYWuPNnPgQCHnP2dFft0H2A7Kv/\n fgiUGfnqicob/8k9n534+4Zn8bukOZKlntmFeUAk865FPvqI7zDrlIs/s7/lbdwdZJse\n gYwkp33TO3ShaRGaE6xiDlV1K36pobfft85933U3AKcwxftcUWQ5q9TzChCparE+sB0T\n vxoYDSVoQy2IS8UU2moGqWyT5i7Zs4yDrTIETEVnn+MT+aXRY4K16W+BMO4DyEeuVveA\n wqdQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776929962; x=1777534762;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=PBF/GhlNTkJEwAwgVAkV3bCoR4aZon56uf4cE39ZuB8=;\n b=fGOfqk+ECfN+qHjJgLXiEWKA7KzD5XBPjaZP4j+UneFst109Dziw0/ZJc3SQETaZk1\n wH7UaXU3QBv5cxa4yClWlHnH+6QwxY37sF0hz2u2+1zeO6xciIDj8yAMJ9Cha8pUmLr7\n Xo0D5rBXxwCvJJy25pbxJPkCKN/CgFtWbxzYoZZFYmHzluS8/AcZBy7RcrzCDfGtEGV7\n 5cj8lanr5PomyddKUuz5UGMur8Ds+VzJDcVBlhm3uryIwsMFvGGmlVL75OdzVOXfy+4d\n EO+S/golvkwWabJUbr3Nwz5dn0wA4olHEzVX6rLCJiwqXMlMUZnB1q5hmUVT/XrZSjRv\n 2QFA==",
        "X-Gm-Message-State": "AOJu0Yzw0bjLZvA3rnDQPwbcZnQM5J0y+/EfQdeRWkEJbUxSwYembLze\n YfyEMUx3wRjvSvAc3/yGXsa86ByjFX5SY3qP0jGYIdsF7ibsKs4OfRUsdVzEbvuCnrm/NtonhT0\n 38Y8=",
        "X-Gm-Gg": "AeBDietnKd6TZyGMlkG5FdYmmWsYyRpA7JnUAK8wHRDsBeRMbxtnIWUCtUZl3vUu5Bd\n x8CwYRfDDB7ejfPq3uO1VbILL5obLKcoVSFKUdm1XxnEx6O3Ca7mYp0irzkLUWiNM5V2QIH1WG5\n 7WPSZLjzrfI0X/b3i/nzpAPglB+bsQgHi/AjqHkUrdKrut0BpnPB7noQss/hv3CGSGPDI0Hb0cG\n vRpEQxFdXj6BbIGlcJ93c8h7x4anAVOpSqyhWqKSrBrX37lDiacKUTn2erudN6R1xoReVY1pvrP\n NWedtB36FyQyGuiYjdPpw9nA4XDGwJrnn0igdqmYwwRuY5+gltYYT93i4ytx0TT0LvMkSnkG5OL\n /gLuYryXt8hBehZ5FYmzSD9KWspDrrmmac35B7z9mdTBmHf8adhU+kp8B2kwGywc0Q4dAhHiU7y\n Cgsyy20mOHvI/zUcT2ZeCjJx98gQX0oJrO5vsg5qhI8y4=",
        "X-Received": "by 2002:a05:600c:c090:b0:488:c744:49b with SMTP id\n 5b1f17b1804b1-488fb74a53dmr270408665e9.7.1776929962211;\n Thu, 23 Apr 2026 00:39:22 -0700 (PDT)",
        "From": "Eric Botcazou <botcazou@adacore.com>",
        "X-Google-Original-From": "Eric Botcazou <ebotcazou@adacore.com>",
        "To": "gcc-patches@gcc.gnu.org",
        "Subject": "[PATCH] Honor LDFLAGS_FOR_TARGET for shared libgcc on Windows",
        "Date": "Thu, 23 Apr 2026 09:31:07 +0200",
        "Message-ID": "<6259829.lOV4Wx5bFT@arcturus>",
        "MIME-Version": "1.0",
        "Content-Type": "multipart/mixed; boundary=\"nextPart5094524.31r3eYUQgx\"",
        "Content-Transfer-Encoding": "7Bit",
        "X-BeenThere": "gcc-patches@gcc.gnu.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>",
        "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>",
        "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "Unlike for other targets, LDFLAGS_FOR_TARGET is not honored on Windows when \nthe shared libgcc is built.\n\nTested on x86-64/Windows, applied on the mainline as obvious.\n\n\n2026-04-23  Eric Botcazou  <ebotcazou@adacore.com>\n\nlibgcc/\n\t* config/i386/t-slibgcc-cygming (SHLIB_LINK): Add $(LDFLAGS).",
    "diff": "diff --git a/libgcc/config/i386/t-slibgcc-cygming b/libgcc/config/i386/t-slibgcc-cygming\nindex 6871498cf60..14ad8b2701d 100644\n--- a/libgcc/config/i386/t-slibgcc-cygming\n+++ b/libgcc/config/i386/t-slibgcc-cygming\n@@ -36,7 +36,7 @@ SHLIB_LINK = $(LN_S) -f $(SHLIB_MAP) $(SHLIB_MAP).def && \\\n \t\tmkdir $(SHLIB_DIR); \\\n \telse true; fi && \\\n \t$(CC) $(LIBGCC2_CFLAGS) $(SHLIB_PTHREAD_CFLAG) \\\n-\t-shared -nodefaultlibs \\\n+\t-shared -nodefaultlibs $(LDFLAGS) \\\n \t$(SHLIB_MAP).def \\\n \t-Wl,--out-implib,$(SHLIB_DIR)/$(SHLIB_IMPLIB).tmp \\\n \t-o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp @multilib_flags@ \\\n",
    "prefixes": []
}