From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Nicolas_B=C3=A9rtolo?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] [WIP] Port feature/native-comp to Windows. Date: Mon, 11 May 2020 13:44:03 -0300 Message-ID: References: <5eb5b953.1c69fb81.a67ce.a764@mx.google.com> <83lfm1hc91.fsf@gnu.org> <83wo5lds87.fsf@gnu.org> <83lflzd8es.fsf@gnu.org> <83ftc7d4zu.fsf@gnu.org> <83blmvd2if.fsf@gnu.org> <833686d08r.fsf@gnu.org> <83eerqbg22.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="130187"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Andrea Corallo To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 11 18:45:14 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYBYF-000Xfq-G2 for ged-emacs-devel@m.gmane-mx.org; Mon, 11 May 2020 18:45:11 +0200 Original-Received: from localhost ([::1]:53190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYBYE-0001N1-IA for ged-emacs-devel@m.gmane-mx.org; Mon, 11 May 2020 12:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYBXO-0000SY-5j for emacs-devel@gnu.org; Mon, 11 May 2020 12:44:18 -0400 Original-Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]:45696) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYBXN-0003bh-Ah; Mon, 11 May 2020 12:44:17 -0400 Original-Received: by mail-oi1-x22d.google.com with SMTP id k133so15454064oih.12; Mon, 11 May 2020 09:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3oyNp5lHeFh7YqR54BDqoTHHbCpKfuO2zPMOdfpqFxk=; b=dGvkONmLxpneecW8nt5bAVTsTFMAXj5UgRaEgVhoWoaBXKCDNb0Iu0AyzyY7VFlV7H ZasWLCHthnTvjjFfSHMWn2OasEDEwbE5gDYP1n8X2XRKYdF3c5oJ/qEtk5QmnS1K6MLt YB8DM895menSWozyr1e65/xgf+2j2OlpLpk3hPjSjlYX1l60zbBGrJhzcw5RzwwuKdih gceYp8SnizVv37nDjOytJ5KKg5T94V7rdK7YHIsGRfut3qS1QXPbn47j6KPvDiFkSbvD abQN7tBmv3mDGFnh9lKmDSavoyQ99CoZ5NK2ypfJynWI+x+HFwZ4IAE2WD3XGqwMaj2y NNqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3oyNp5lHeFh7YqR54BDqoTHHbCpKfuO2zPMOdfpqFxk=; b=bjYq/VNfdOg2XbP/OZif0dGTPDvVgJ6fzh1DyP6nvGa1/vSFZri4xzgp6VJY2eOORa HUFZ1Glo59J3lybGOww8q0HQ8HCqr2EA+4YmzpX7FFoeXIgw6MTxwnCwY9Y44lNm/e3C ZmG+lQ39XgtGcbXv29MG1zUtvhbnNe1RwiEwjTI43zwhu6DCCGrNurKVBcsKdGmYG4VT XETwZpTilvoSGE4Irq/AITe/Kio1Zx84Bi2m3J/j7uciuNTZI2Ny51xvOCsR3j4Ykwio AvoBDovwThLZg7IbKdBg9ZzCcnDQm3yHZxLvFs8QTlxXTJcyfvg59Kp42V0q6rJ0MGPP 8TrQ== X-Gm-Message-State: AGi0PualVxL8F9IUQovPaaLXvW9GuGdN+eL3EDmYSUNpZ0OeL00hzx/O jPY3vwtzXRdKyiFPVk3xLbXHSHX+EV4mNQlLld6IFWlnzIM= X-Google-Smtp-Source: APiQypKzfiYIlTQ8LYJrkvPVjTOvpO8Qv+D2FRjmNQIq4c3oyEo9NZ16P+xFEOvHvieceeS/soASTooAomchHe+JmfA= X-Received: by 2002:aca:c68b:: with SMTP id w133mr20664279oif.175.1589215455272; Mon, 11 May 2020 09:44:15 -0700 (PDT) In-Reply-To: <83eerqbg22.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::22d; envelope-from=nicolasbertolo@gmail.com; helo=mail-oi1-x22d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:249825 Archived-At: > This only solves the problem of having the stuff on PATH, it doesn't > solve the problem of installing it. And it creates a new problem: the > DLLs will not be in a place where the system looks for them, so we > will need some extra code in the *.eln loader to find them. The .eln files do not link against any dynamic libraries. They can be loaded into Emacs even if GCC is not in the path. `ld` needs a few object files and static libraries to create the file. I am typing this from an Emacs that does not have gcc in PATH and it has many .eln files loaded. >> I will do this. > Thanks. I have seen that the way to declare DLL functions to be used in Windows is to use the DEF_DLL_FN macro. This only works in Windows though. Is there a library that is loaded through dlopen() in Posix too? I would like to use it as an example.