Skip to content

Commit 708910d

Browse files
committed
Add note on cross-compiling
1 parent 0b15d37 commit 708910d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,24 @@ Python plugin for linuxdeploy. Sets up miniconda inside an AppDir, and installs
1616
There are many variables available to alter the behavior of the plugin. The current list can be obtained by calling the plugin with `--help`.
1717

1818

19+
### Cross-compiling/cross-building for `i[3-6]86` (Intel 32-bit)
20+
21+
You can cross-build native extensions for `i[3-6]86` by installing a 32-bit compiler and instructing distutils to use those.
22+
23+
On Debian, Ubuntu and other derivatives:
24+
25+
```sh
26+
sudo apt-get install -y gcc-multilib g++-multilib
27+
export ARCH=i386 CC="gcc -m32" CXX="g++ -m32" LDSHARED="gcc -m32 -shared -pthread"
28+
```
29+
30+
If your system doesn't provide multilib compilers, wrappers like `i686-linux-gnu-gcc` also work fine.
31+
32+
**Note:** It's very important to also overwrite `LDSHARED`!
33+
34+
See https://stackoverflow.com/a/47711430 for more information.
35+
36+
1937
## Customize caching behavior
2038

2139
By default, linuxdeploy-plugin-conda redownloads the miniconda installer on every execution. This is not an issue for most people, as the installers are only 50-80 MiB in size. However, it is usually not necessary to redownload the file every time, especially while developing scripts based on the conda plugin.

0 commit comments

Comments
 (0)