On Thu, Oct 9, 2014 at 3:31 AM, Madeline Dor <madeline....@gmail.com> wrote: > Hi experts, > > I am new to GRUB2 and I have a library (libuser.a) that I would like to > statically linked to GRUB2. Is this possible?
Unlikely. Everything under grub-core does not use any external libraries, it is compiled in standalone mode (this is *the* bootloader that runs on bare metal). > > I have looked at grub2/grub-core's Makefile.core.def and I saw: > > module = { > name = regexp; > common = commands/regexp.c; > common = commands/wildcard.c > ldadd = libgnulib.a; > cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)'; > cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)' > }; > > What does ldadd do? Where does libgnulib.a live? I tried to search for > libgnulib.a in the grub directory but I couldn't find it. I also tried to > search online but couldn't find any info. > It is built when grub is built. Sources are inside of grub-core. > Thanks. > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel > _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel