Changeset 9d8b12da in mainline for uspace/Makefile.common


Ignore:
Timestamp:
2017-11-08T22:43:39Z (8 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
378948d
Parents:
d2e7a51
Message:

Instead of setting MATH=y, just list 'math' in dependencies like a normal library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    rd2e7a51 r9d8b12da  
    4444#   EXTRA_CLEAN        additional cleanup targets
    4545#
    46 #   MATH               set to 'y' to use the math library
    4746#   POSIX_COMPAT       set to 'y' to use POSIX compatibility layer
    4847#
     
    140139ifeq ($(STATIC_BUILD),y)
    141140        BASE_LIBS = $(LIBC_PREFIX)/libc.a $(LIBSOFTINT_PREFIX)/libsoftint.a
    142         ifeq ($(MATH),y)
    143                 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a
    144         endif
    145141else
    146142        BASE_LIBS = $(LIBC_PREFIX)/libc.so.0 $(LIBSOFTINT_PREFIX)/libsoftint.so.0
    147143        LINK_DYNAMIC = y
    148         ifeq ($(MATH),y)
    149                 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.so.0
    150         endif
    151144endif
    152145
     
    168161LIB_LINKER_SCRIPT = $(LIBC_PREFIX)/arch/$(UARCH)/_link-shlib.ld
    169162
    170 ifeq ($(MATH),y)
    171         INCLUDES_FLAGS = $(LIBC_INCLUDES_FLAGS) $(LIBMATH_INCLUDES_FLAGS)
    172 else
    173         INCLUDES_FLAGS = $(LIBC_INCLUDES_FLAGS)
    174 endif
     163INCLUDES_FLAGS = $(LIBC_INCLUDES_FLAGS)
    175164
    176165ifneq ($(LIBRARY),)
     
    179168
    180169INCLUDES_FLAGS += $(foreach lib,$(LIBS), -I$(LIB_PREFIX)/$(lib) -I$(LIB_PREFIX)/$(lib)/include)
     170
     171# TODO: get rid of this special case
     172ifneq ($(filter math, $(LIBS)),)
     173        INCLUDES_FLAGS += $(LIBMATH_INCLUDES_FLAGS)
     174endif
    181175
    182176# PCUT-based unit tests
Note: See TracChangeset for help on using the changeset viewer.