mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 06:07:59 +00:00
a10903a197
Those symbols are not satisfied by any code or dependency of libm. As result calling cprojf function will always crash on Genode. This crash can be turned into link time error by adding --no-undefined to LD_OPT. This patch provides the missing symbols by including isninf.c in libm build. Fixes #4299
70 lines
1.5 KiB
Makefile
70 lines
1.5 KiB
Makefile
LIBC_PORT_DIR := $(call select_from_ports,libc)
|
|
LIBC_DIR := $(LIBC_PORT_DIR)/src/lib/libc
|
|
LIBM_DIR := $(LIBC_DIR)/lib/msun
|
|
|
|
SHARED_LIB = yes
|
|
|
|
LIBS = libc
|
|
|
|
#
|
|
# finding 'math_private.h'
|
|
#
|
|
INC_DIR += $(LIBM_DIR)/src
|
|
|
|
#
|
|
# finding 'fpmath.h', included by 'invtrig.h'
|
|
#
|
|
INC_DIR += $(LIBC_DIR)/lib/libc/include
|
|
|
|
FILTER_OUT += s_exp2l.c
|
|
|
|
#
|
|
# Files that are included by other sources (e.g., 's_sin.c'). Hence, we need
|
|
# to remove them from the build. Otherwise, we would end up with doubly
|
|
# defined symbols (and compiler warnings since those files are apparently
|
|
# not meant to be compiled individually).
|
|
#
|
|
FILTER_OUT += e_rem_pio2.c e_rem_pio2f.c
|
|
|
|
#
|
|
# Use default warning level rather than -Wall because we do not want to touch
|
|
# the imported source code to improve build aesthetics.
|
|
#
|
|
CC_WARN =
|
|
|
|
SRC_C = $(wildcard $(LIBM_DIR)/src/*.c) \
|
|
$(wildcard $(LIBM_DIR)/bsdsrc/*.c)
|
|
|
|
# Provides __isinff and __isinfl used by lib/msun/src/s_cprojf.c
|
|
SRC_C += isinf.c
|
|
|
|
#
|
|
# 128 bit quadruple precision format
|
|
#
|
|
ifeq ($(LIBM_LD128),yes)
|
|
INC_DIR += $(LIBM_DIR)/ld128
|
|
SRC_C += $(wildcard $(LIBM_DIR)/ld128/*.c)
|
|
|
|
vpath %.c $(LIBM_DIR)/ld128
|
|
endif
|
|
|
|
#
|
|
# 80 bit extented precision format
|
|
#
|
|
ifeq ($(LIBM_LD80),yes)
|
|
INC_DIR += $(LIBM_DIR)/ld80
|
|
SRC_C += $(wildcard $(LIBM_DIR)/ld80/*.c)
|
|
|
|
vpath %.c $(LIBM_DIR)/ld80
|
|
endif
|
|
|
|
SRC_C := $(filter-out $(FILTER_OUT),$(notdir $(SRC_C)))
|
|
|
|
vpath %.c $(LIBC_DIR)/lib/libc/gen/
|
|
vpath %.c $(LIBM_DIR)/src
|
|
vpath %.c $(LIBM_DIR)/bsdsrc
|
|
|
|
CC_CXX_WARN_STRICT =
|
|
|
|
# vi: set ft=make :
|