HAMNET-Access-Protocol / HNAP4PlutoSDR

Main transceiver application
GNU Lesser General Public License v3.0
29 stars 5 forks source link

Fix Simulation compilation with GCC 10 #38

Open dl1com opened 4 years ago

dl1com commented 4 years ago

Due to a change in GCC 10 (https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common), compilation of target test_mac throws many multiple definition of ' ' first defined here errors when trying to link. This happened to me as current debian testing uses GCC 10.

Setting the compile flag -fcommon for gcc fixes the errors, but is only rated as a workaround in the link mentioned above.

Check which changes we have to perform to enable error-free build with -fno-common and implement them.