Don't add -lm on haiku.
* configure.ac: Define BUILD_LIBM to -lm on most platforms and empty on haiku. * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than -lm.
This commit is contained in:
parent
e8559d2434
commit
29013cba15
3 changed files with 16 additions and 1 deletions
|
@ -35,7 +35,7 @@ build-grub-pe2elf: $(top_srcdir)/util/grub-pe2elf.c $(top_srcdir)/grub-core/kern
|
|||
|
||||
# gentrigtables
|
||||
gentrigtables: gentrigtables.c
|
||||
$(BUILD_CC) -o $@ -I$(top_srcdir)/include $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< -lm
|
||||
$(BUILD_CC) -o $@ -I$(top_srcdir)/include $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< $(BUILD_LIBM)
|
||||
CLEANFILES += gentrigtables
|
||||
|
||||
# trigtables.c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue