DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5A2IOjku177496 Authentication-Results: delorie.com; dmarc=none (p=none dis=none) header.from=delorie.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=delorie.com X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5A2IOirf177476 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: delorie.com; spf=pass smtp.mailfrom=gnu.org DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 5A2IOirf177476 Authentication-Results: delorie.com; dkim=pass (2048-bit key, unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=nEt3u7wM X-Recipient: djgpp AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xe39sbVr8XYJ5RF+uyenkd4lULEduiEVKzQ9lSdHW5o=; b=nEt3u7wMyicG Y7slsqjaP8s4S4STZ8s/I1iacq6CAd+DayEMCSoYOCxkC7YTPWd/NiFSPqQDrwFC09+fR4eZ8Z48P m1uLD5nJugCe11i1FCtaU3PbxihzyR6GQE5eunSnVVt5lns8JgV1dXgpHfIPu5R079QUPBD/04bWU bzd3L2awgr3E7Lmuxf3FnUkurt3avtkuAu+NXA6O6VN22K1/w+YYAclqRCL+aOmUt9Sr9In2lnrFf 9uUOxPeEWpTbjFplXjeRjYjD1cIbyTfsggRZhTE5RTv11YcZ+zKCmmGYuuqJRaiqXk44jpa55cQqg ReESO7/Bu9eql1fICii+1g==; Date: Sun, 02 Nov 2025 20:24:38 +0200 Message-Id: <86v7jsgumx.fsf@gnu.org> From: "Eli Zaretskii (eliz AT gnu DOT org) [via djgpp AT delorie DOT com]" To: djgpp AT delorie DOT com In-Reply-To: (djgpp AT delorie DOT com) Subject: Re: How to cross compile djgpp software from Unix to DOS? References: Reply-To: djgpp AT delorie DOT com > Date: Sun, 02 Nov 2025 16:43:45 +0000 > From: "John Doe (altaptitude AT proton DOT me) [via djgpp AT delorie DOT com]" > > I have a djgpp cross-compiler (i586-pc-msdosdjgpp-gcc) setup on GNU/Linux after following the instructions on the website and have confirmed it functions correctly. However i'm not sure how i can use it to compile djgpp software, such as emacs, for DOS. The v2gnu/ emacs READMEs as well as msdos/INSTALL in the emacs source tree only explain how to do it on a DOS system with djgpp. Emacs doesn't support cross-compilation, because part of the Emacs build process needs to run the Emacs binary just built. This has nothing to do with DOS or DJGPP, it's just a missing feature in Emacs: no one has yet figured out how to remove this limitation.