Skip to contentSkip to conversation

Problem building grub 1.93 on FreeBSD

DISCUSSION Christian Laursen 2 participants 2 messages Mar 31, 2006 – Apr 2, 2006

lore
Share & tools
lore
#0 lore raw

I am attempting to build grub 1.93 on FreeBSD but are experiencing problems when trying to tell the configure script where to find the LZO library.

Lzo 2 is installed and located in /usr/local/lib:

-rw-r--r--  1 root  wheel  161066 Mar 31 15:33 /usr/local/lib/liblzo2.a
-rwxr-xr-x  1 root  wheel     798 Mar 31 15:33 /usr/local/lib/liblzo2.la
lrwxr-xr-x  1 root  wheel      12 Mar 31 15:33 /usr/local/lib/liblzo2.so -> liblzo2.so.2
-rwxr-xr-x  1 root  wheel  120428 Mar 31 15:33 /usr/local/lib/liblzo2.so.2

I am defining LDFLAGS and CFLAGS before running ./configure they do not seem to be used when trying to detect LZO.

The typescript of the configure run is here:
http://borderworlds.dk/~xi/grub2/configure.txt

The config.log is here:
http://borderworlds.dk/~xi/grub2/config.log

As far as I can see, my CFLAGS and LDFLAGS are used in some of the tests but not in the last ones when trying to detect LZO. I don't understand autoconf enough to figure out how to fix this so any hints would be greatly appreciated.

Thanks.

Signature · 1 line
Christian Laursen
#1 lore raw
Quoted 2 lines · Christian Laursen

I am defining LDFLAGS and CFLAGS before running ./configure they do not seem to be used when trying to detect LZO.

This should be fixed now in the CVS. However, you must specify BUILD_LDFLAGS and BUILD_CFLAGS instead, since the flags must be used to link utilities.

Okuji