On 09/22/2017 03:57 PM, Uwe Kleine-König wrote: > > for the package sparse I have to distinguish armel and armhf. The reason > is that sparse parses system headers and so has to know which cpp > symbols to define. Usually it uses uname -m to distinguish platforms but > that isn't suitable to tell armel and armhf apart. > > For armhf I need to define __ARM_PCS_VFP but that must be absent on armel. > > For upstreaming a fix it would be great if the test would not be Debian > specific. >
Inspect what platform the system shell was compiled for by running: readelf --arch-specific /bin/sh then look for Tag_ABI_HardFP_use or Tag_ABI_VFP_args in the returned list. Build time detection is pretty much covered since "all versions of gcc since 4.6 have supported __ARM_PCS_VFP" flag [0]. [0] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45886#c6 Milan
signature.asc
Description: OpenPGP digital signature