Skip to content

Commit

Permalink
Build nettest with -fcommon
Browse files Browse the repository at this point in the history
Now that alpine uses gcc 10, the nettest build fails because of the
switch to -fno-common by default (because external functions aren’t
declared correctly). The quick fix is to revert to -fcommon.

See https://gcc.gnu.org/gcc-10/porting_to.html for details.

Signed-off-by: Stephen Kitt <[email protected]>
  • Loading branch information
skitt authored and mangelajo committed Jan 15, 2021
1 parent 0f86a16 commit 868f15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/Dockerfile.nettest
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app
RUN apk add --update --no-cache gcc libc-dev make curl

RUN curl -L https://github.com/HewlettPackard/netperf/archive/netperf-2.7.0.tar.gz | tar xzf -
RUN cd netperf-netperf-2.7.0 && ./configure \
RUN cd netperf-netperf-2.7.0 && ./configure CFLAGS=-fcommon \
&& make && make install


Expand Down

0 comments on commit 868f15e

Please sign in to comment.