risacher / sunwait

Sunwait calculates sunrise or sunset times with civil, nautical, astronomical and custom twilights, for use with Windows Task Scheduler or 'cron' on Linux.
GNU General Public License v3.0
193 stars 45 forks source link

Fix use of C++ make variables. #35

Closed trombonehero closed 2 years ago

trombonehero commented 2 years ago

Since this is a C++ program, use $(CXX) (which defaults to c++) instead of $(C) (which is currently hardcoded to gcc). This eliminates the need to hardcode linkage of a C++ standard library, which helps on platforms where libc++ is the standard library instead of libstdc++.

This builds on pull request #34, which fixes compiler errors.

risacher commented 2 years ago

Thanks for the PR. Fixed.