telescope-browser / telescope

browser for the small internet
https://telescope-browser.org
ISC License
43 stars 1 forks source link

provide HOSTCC and HOSTCFLAGS variables to simplify cross-compilation #6

Closed omar-polo closed 2 years ago

omar-polo commented 2 years ago

pagebundler is a helper that needs to be built with the host compiler because it's used to generate some sources. In normal situations, HOSTCC and HOSTCFLAGS are just ${CC} and ${CFLAGS}, but folks that cross-compile can specify there the host compiler and flags to successfully build telescope.

The idea is largely based on what gforth does: it re-uses ${CFLAGS} for the host compiler though, while I'm adding an extra variable for that.

fixes #5

omar-polo commented 2 years ago

(the two echo "====> ..." messages are only to aid the debugging, they won't make in the final commit if ever :D)