From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-relay-3.sys.kth.se (smtp-relay-3.sys.kth.se [130.237.32.48]) by sourceware.org (Postfix) with ESMTPS id 8458D3858D28 for ; Sat, 29 Jan 2022 22:26:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8458D3858D28 Received: from exdb2.ug.kth.se (exdb2.ug.kth.se [192.168.32.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-relay-3.sys.kth.se (Postfix) with ESMTPS id 4JmTSH6cS6zPRy0; Sat, 29 Jan 2022 23:26:07 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp-relay-3.sys.kth.se 4JmTSH6cS6zPRy0 Received: from exdb6.ug.kth.se (192.168.32.61) by exdb2.ug.kth.se (192.168.32.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Sat, 29 Jan 2022 23:26:07 +0100 Received: from exdb6.ug.kth.se ([192.168.32.61]) by exdb6.ug.kth.se ([192.168.32.61]) with mapi id 15.02.0986.015; Sat, 29 Jan 2022 23:26:07 +0100 From: Petter Tomner To: =?iso-8859-1?Q?Marc_Nieper-Wi=DFkirchen?= , "jit@gcc.gnu.org" Subject: SV: AOT compiling and libraries to link against Thread-Topic: AOT compiling and libraries to link against Thread-Index: AQHYFVzjLIDXnk2va0CVHe0bCgCZqqx6k51P Date: Sat, 29 Jan 2022 22:26:07 +0000 Message-ID: <717f3c2959b14722a69a9c75b7253200@kth.se> References: In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.32.250] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: jit@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Jit mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2022 22:26:12 -0000 The docs are not synced with the addition of gcc_jit_context_add_driver_opt= ion, which allows linking. You can use: E.g. gcc_jit_context_add_driver_option(ctxt, "obj.o") or gcc_jit_context_add_driver_option(ctxt, "-L.") gcc_jit_context_add_driver_option(ctxt, "-lwhatever") for that. Regards, =