sabotage-linux / netbsd-curses

libcurses and dependencies taken from netbsd and brought into a portable shape (at least to musl or glibc)
Other
147 stars 14 forks source link

cross-compile with `clang`? #50

Closed hanhlinux closed 2 years ago

hanhlinux commented 2 years ago

I see that cross-compile will be detected when CC is different from HOSTCC. So how can I work with clang?

rofl0r commented 2 years ago

just make CC different from HOSTCC. since both target different archs, they need to be different anyway. e.g. make CC="clang --target-arch=mips" HOSTCC="clang --target-arch=x86_64". replace --target-arch with whatever the right switch is.