Closed mmokrejs closed 9 years ago
You need efivar library for building efibootmgr. A notice should be added to the INSTALL file, I agree.
Maybe also add a check into Makefile? Ideally use configure to generate the Makefile ... but I cannot help with that. ;-)
With the latest efivar and latest efibootmgr it looks like the file is /usr/include/efivar/efivar.h
, which means I had to had to add -I/usr/include/efivar
to CFLAGS
for efibootmgr to compile.
These have been fixed in the dp branch with commits ada1a1cf and 6a971bd0 , which change the makefile to use pkg-config to find its dependencies, and add appropriate notes in INSTALL, respectively.
The dp branch will be merged before the next release.
Thanks for this feedback!
Provide compilers have by default '-I/usr/include' already defined, why don't you use:
#include <efivar/efivar.h>
but force
#include "efivar.h"
which in turn means user has to pass -I/usr/include/efivar to a preprocessor?
We already need pkg-config to let consumers know they need e.g. -ldl , so there's really not any reason not to use it for include paths as well - and that lets us make efivar.h include other things from efivar without having to worry about what the correct paths/include types are.
You could certainly do it another way, but I'd already written this one, and I'm not seeing much advantage either way.
Hi, I tried current snapshot fetched as the .zip file but it fails to find some header:
Maybe time to update the INSTALL file? ;-)