Skip to content

Commit 78c6196

Browse files
Initial Commit
1 parent 23f8bd0 commit 78c6196

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

docs/building/interix.html

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,28 @@ <h2>Interix</h2>
5252

5353
<p>Please read the INSTALL file of each project for full directions.</p>
5454

55-
<p><a href="https://www.prnewswire.com/news-releases/xinuos-sues-ibm-and-red-hat-for-antitrust-violations-and-copyright-infringement-alleges-ibm-has-been-misleading-its-investors-since-2008-301259756.html">Xinuos Sues IBM and Red Hat for Antitrust Violations and Copyright Infringement</a></p>
55+
<p>
56+
Building FreeBSD on Cygwin
57+
involves cross-compiling, as Cygwin acts as a POSIX emulation layer on Windows, not a native BSD environment. This requires configuring the build toolchain, using make.py or standard make with target architecture flags (TARGET/TARGET_ARCH), and ensuring necessary developer tools are installed within Cygwin.
58+
Key Steps for Building FreeBSD on Cygwin:
59+
60+
Prepare Environment: Install Cygwin with essential build tools: git, make, gcc-core, gcc-g++, binutils, and python3.
61+
Obtain Source: Clone the FreeBSD source repository (e.g., stable/14) using Git.
62+
Cross-Build Structure: Use tools/build/make.py or set TARGET (e.g., amd64) and TARGET_ARCH (e.g., amd64) environment variables.
63+
Toolchain: Utilize the in-tree LLVM/Clang by passing --bootstrap-toolchain to tools/build/make.py for a more reliable build compared to external GCC.
64+
Build Process: Run make buildworld and make buildkernel within the Cygwin terminal.
65+
66+
Important Considerations:
67+
68+
Performance: Building on Cygwin can be slower than native FreeBSD.
69+
Alternatives: Using a virtual machine running FreeBSD directly is generally recommended for building FreeBSD to avoid compatibility issues.
70+
Toolchains: While you can use external GCC, it is often more complex, requiring specific cross-toolchain setup.
71+
72+
For detailed steps, referring to the BuildingOnNonFreeBSD wiki is crucial
73+
</p>
74+
75+
<pre>export XCC=x86_64-w64-mingw32 XCXX=x86_64-w64-mingw32 XCPP=x86_64-w64-mingw32 XLD=x86_64-w64-mingw32
76+
MAKEOBJDIRPREFIX=/usr/obj ./tools/build/make.py --cross-toolchain=gcc-core -DWITH_FOO TARGET=amd64 TARGET_ARCH=amd64</pre>
5677

5778
<p><a href="https://www.opengroup.org/openbrand/register/">Registered UNIX Products</a></p>
5879

@@ -90,25 +111,10 @@ <h2>Interix</h2>
90111

91112
<p>You should always use the Administrator account and fill out your Full Name</p>
92113

93-
<pre>
94-
Building FreeBSD on Cygwin
95-
involves cross-compiling, as Cygwin acts as a POSIX emulation layer on Windows, not a native BSD environment. This requires configuring the build toolchain, using make.py or standard make with target architecture flags (TARGET/TARGET_ARCH), and ensuring necessary developer tools are installed within Cygwin.
96-
Key Steps for Building FreeBSD on Cygwin:
97-
98-
Prepare Environment: Install Cygwin with essential build tools: git, make, gcc-core, gcc-g++, binutils, and python3.
99-
Obtain Source: Clone the FreeBSD source repository (e.g., stable/14) using Git.
100-
Cross-Build Structure: Use tools/build/make.py or set TARGET (e.g., amd64) and TARGET_ARCH (e.g., amd64) environment variables.
101-
Toolchain: Utilize the in-tree LLVM/Clang by passing --bootstrap-toolchain to tools/build/make.py for a more reliable build compared to external GCC.
102-
Build Process: Run make buildworld and make buildkernel within the Cygwin terminal.
103-
104-
Important Considerations:
114+
<p><a href="https://www.prnewswire.com/news-releases/xinuos-sues-ibm-and-red-hat-for-antitrust-violations-and-copyright-infringement-alleges-ibm-has-been-misleading-its-investors-since-2008-301259756.html">Xinuos Sues IBM and Red Hat for Antitrust Violations and Copyright Infringement</a></p>
105115

106-
Performance: Building on Cygwin can be slower than native FreeBSD.
107-
Alternatives: Using a virtual machine running FreeBSD directly is generally recommended for building FreeBSD to avoid compatibility issues.
108-
Toolchains: While you can use external GCC, it is often more complex, requiring specific cross-toolchain setup.
109116

110-
For detailed steps, referring to the BuildingOnNonFreeBSD wiki is crucial
111-
</pre> </section>
117+
</section>
112118
</div>
113119
</div>
114120
</div>

0 commit comments

Comments
 (0)