If a binary runs on a different machine depends on a lot of factors. The following sections provide some tips to maximize portability. In general Windows binaries are more portable than *nix binaries.
/favor:blend
: Optimizes for AMD and Intel architectures, see MSDN docs/arch:sse2
on 32-bit, /arch
undefined on 64-bitOGS_CPU_ARCHITECTURE
: possible values AMD64
or INTEL64
(sets /favor:{AMD64 | INTEL64}
flag)-march=native
: Optimizes for current CPUOGS_CPU_ARCHITECTURE
: set to generic
for good balance between optimization and portability; set to core2
for maximum portability, more info on GCC docsOGS_CPU_ARCHITECTURE
: tot to native
for best optimization for your current CPU, possible values are listed here, more info on GCC docsTry to use static libraries as much as possible. For OGS itself use BUILD_SHARED_LIBS=OFF
, which already defaults to OFF
.
Use the package
-target which tries to gather all dependencies and fixes up shared library paths:
make package
This creates a zip- or tar-archive which should be redistributable.
This article was written by Lars Bilke. If you are missing something or you find an error please let us know.
Generated with Hugo 0.122.0
in CI job 493443
|
Last revision: September 23, 2024
Commit: [MeL/IO/XDMF] Return also computed parent data type 09baf91
| Edit this page on