chettrick / discobsd

2.11BSD-based UNIX-like OS for STM32 and PIC32 Microcontrollers
http://www.DiscoBSD.org
BSD 3-Clause "New" or "Revised" License
171 stars 15 forks source link

build: use gcc for zoneinfo #6

Closed saper closed 11 months ago

saper commented 1 year ago

Otherwise FreeBSD's cc (clang 16 for example) might issue warnings for non-ANSI prototypes.

saper commented 1 year ago

This is a quick fix for #5

omarandlorraine commented 1 year ago

Could be I'm missing something, but Wouldn't it be better to declare the functions at the top of the file or in a header?

That way, it'll build with whatever compiler.

chettrick commented 11 months ago

I'm going to close this PR, as commit d8533040deeb6f149527042206c3ae7e9db3e19e enables changing the host compiler with the HOST_CC make variable.

I will keep issue #5 open so we can track that the zoneinfo executables can be built with clang16.