Attention is currently required from: Hoernchen, fixeria, laforge, osmith, 
pespin.

Timur Davydov has posted comments on this change by Timur Davydov. ( 
https://gerrit.osmocom.org/c/osmo-trx/+/42243?usp=email )

Change subject: build: install common/GSM/transceiver libraries for emscripten 
and add pkg-config files
......................................................................


Patch Set 3:

(1 comment)

Patchset:

PS1:
> If we are linking dynamically against the stuff in CommonLibs/ and GSM/ then 
> I'd say it's unintended.
>
> If that's the case, please submit a patch to always statically link those 
> files into osmo-trx-*.

I didn’t mean dynamic linking specifically for the CommonLibs/ and GSM/ parts. 
In the native build those are already linked statically into the `osmo-trx-*` 
binaries, so no additional patch is needed on that front.

My point was more general: for the Emscripten target, dynamic linking isn’t 
really a workable option, and we need all required code available at final link 
time.

> I see no need for the .pc files since those object files are not expected to 
> be used by other programs, they are internal to osmo-trx.

Regarding the .pc files: while I understand these objects are “internal” from 
the upstream perspective, in our build we need to reuse those internal 
libraries when linking `osmo-bts-trx + osmo-trx` into a single final static 
output (which is then used to produce the resulting wasm + js). Since 
`osmo-bts` and `osmo-trx` are built separately (no shared Makefile.am), having 
pkg-config metadata is the simplest/cleanest way to propagate the correct 
CFLAGS/LIBS for those internal libs across build boundaries.

So the .pc.in files aren’t meant to turn them into a public API — just to make 
the cross-project static link step reliable for the Emscripten pipeline.



--
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/42243?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I2495c5b5c79f2fe74bef83902058e1d2207c1f3c
Gerrit-Change-Number: 42243
Gerrit-PatchSet: 3
Gerrit-Owner: Timur Davydov <[email protected]>
Gerrit-Reviewer: Hoernchen <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-CC: pespin <[email protected]>
Gerrit-Attention: osmith <[email protected]>
Gerrit-Attention: Hoernchen <[email protected]>
Gerrit-Attention: laforge <[email protected]>
Gerrit-Attention: pespin <[email protected]>
Gerrit-Attention: fixeria <[email protected]>
Gerrit-Comment-Date: Tue, 03 Mar 2026 12:21:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <[email protected]>
Comment-In-Reply-To: Timur Davydov <[email protected]>

Reply via email to