intrepidcs / icsneoapi

An open source library for communicating with vehicle network tools developed by Intrepid Control Systems
BSD 2-Clause "Simplified" License
9 stars 9 forks source link

Makefile: Use pkg-config to get name of libftdi #9

Open mrnuke opened 5 years ago

mrnuke commented 5 years ago

Some distros name the libftdi as 'libftdi1', and place the headers under /usr/include/libftdi1. While this is most irritating for developers, the way to get the correct linker and compiler flags is to use pkg-config.

The caveat is we need to look for both 'libftdi', and 'libftdi1'. Thank you redhat for making things difficult for the rest of us!