Skip to content

Commit 27622f8

Browse files
Initial Commit
1 parent 5e230dc commit 27622f8

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

docs/building/interix.html

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,27 @@ <h2>Interix</h2>
8888

8989
<pre>/usr/local/bin in your $PATH, and that that is the standard location for "local binaries".</pre>
9090

91-
<p>You should always use the Administrator account and fill out your Full Name</p?
92-
</section>
91+
<p>You should always use the Administrator account and fill out your Full Name</p>
92+
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:
105+
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.
109+
110+
For detailed steps, referring to the BuildingOnNonFreeBSD wiki is crucial
111+
</pre> </section>
93112
</div>
94113
</div>
95114
</div>

0 commit comments

Comments
 (0)