xkaraman left a comment (kamailio/kamailio#4403)

I tried the following for `i386/alpine` docker image and it seems to work.

Create a file named `i386-toolchain.cmake` with the following content:
```cmake
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR i386)
```

Then issuing the following commands to build it:

```
cmake -S . -B build-alpine-i386  -DCMAKE_INSTALL_PR
EFIX=/usr -DVERBOSE=off -DBUILD_DOC=ON --fresh -DEXCLUDE_MO
DULES="db_oracle dnssec jwt microhttpd nats nsq ruxc secsip
id_proc stirshaken tls_wolfssl app_lua" -DMODULE_GROUP_NAME
="DEFAULT" -DINCLUDE_MODULES="" -DCMAKE_EXPORT_COMPILE_COMM
ANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_F
ILE=cmake/i386-toolchain.cmake

cmake --build build-alpine-i386/
```
Config phase shows:
```
-- OS: Linux
-- OS version: 
-- Host Processor: x86_64
-- Target Processor: i386
-- Target Processor Alias: i386
``` 
as expected

and builds option when verbose mode `cmake --build build-alpine-i386/ -v` 
(clean first to see the ouput if already build) enabled show:

```
-D__CPU_i386 -m32 -minline-all-stringops -falign-loops -ftree-vectorize 
-fno-strict-overflow -mtune=generic
``` 
among others found in `i386` path of cmake `compiler-specific.cmake` options 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4403#issuecomment-3385407098
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/4403/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to