[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to statically linked a library to GRUB2?

From: Andrei Borzenkov
Subject: Re: How to statically linked a library to GRUB2?
Date: Thu, 9 Oct 2014 12:54:33 +0400

On Thu, Oct 9, 2014 at 3:31 AM, Madeline Dor <address@hidden> 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
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]