Re: [PATCH iproute2 v4 1/1] build: Fix link errors on some systems

2021-02-22 Thread Roi Dayan
On 2021-01-12 2:21 PM, Petr Machata wrote: Roi Dayan writes: Since moving get_rate() and get_size() from tc to lib, on some systems we fail to link because of missing math lib. Move the functions that require math lib to their own c file and add -lm to dcb that now use those functions. ..

Re: [PATCH iproute2 v4 1/1] build: Fix link errors on some systems

2021-02-22 Thread Roi Dayan
On 2021-02-22 12:36 PM, Roi Dayan wrote: On 2021-01-12 2:21 PM, Petr Machata wrote: Roi Dayan writes: Since moving get_rate() and get_size() from tc to lib, on some systems we fail to link because of missing math lib. Move the functions that require math lib to their own c file and add

Re: [PATCH iproute2 v4 1/1] build: Fix link errors on some systems

2021-01-12 Thread Petr Machata
Roi Dayan writes: > Since moving get_rate() and get_size() from tc to lib, on some > systems we fail to link because of missing math lib. > Move the functions that require math lib to their own c file > and add -lm to dcb that now use those functions. > > ../lib/libutil.a(utils.o): In function

[PATCH iproute2 v4 1/1] build: Fix link errors on some systems

2021-01-12 Thread Roi Dayan
Since moving get_rate() and get_size() from tc to lib, on some systems we fail to link because of missing math lib. Move the functions that require math lib to their own c file and add -lm to dcb that now use those functions. ../lib/libutil.a(utils.o): In function `get_rate': utils.c:(.text+0x10dc