wiedehopf / adsb-scripts

Solutions to common problems for rtl_sdr / ADS-B stuff
MIT License
290 stars 36 forks source link

Readsb March=native makes non-portable binaries #3

Closed MansM closed 4 years ago

MansM commented 4 years ago

As I can’t create an issue on readsb repo:

I created a Docker image with readsb using GitHub actions. The makefile is using march=native. This lead to a non working binary on my nehalem xeons. Currently I solve it by: ‘’’ sed -i “s/march=native/mtune=nehalem/g Makefile” ‘’’

My suggestion is to move from march to mtune (which would allow it to run everywhere (x86) instead of just that cpu generation)

wiedehopf commented 4 years ago

You can do this:

make OPTIMIZE="-mtune=nehalem"

Most people should be compiling on the same box they plan to use the software on. Others can use this to override.