Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r79ae36dd r2d2b8e6  
    4444#   EXTRA_CLEAN        additional cleanup targets
    4545#
     46#   POSIX_COMPAT       set to 'y' to use POSIX compatibility layer
     47#
    4648# Optionally, for a binary:
    4749#   STATIC_NEEDED      set to 'y' for init binaries, will build statically
     
    104106LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint
    105107
     108LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix
     109
    106110LIBBLOCK_PREFIX = $(LIB_PREFIX)/block
    107111LIBFS_PREFIX = $(LIB_PREFIX)/fs
    108112LIBCLUI_PREFIX = $(LIB_PREFIX)/clui
    109 
    110 LIBEXT2_PREFIX = $(LIB_PREFIX)/ext2
    111 
    112 LIBUSB_PREFIX = $(LIB_PREFIX)/usb
    113 LIBUSBHOST_PREFIX = $(LIB_PREFIX)/usbhost
    114 LIBUSBDEV_PREFIX = $(LIB_PREFIX)/usbdev
    115 LIBUSBHID_PREFIX = $(LIB_PREFIX)/usbhid
    116 LIBUSBVIRT_PREFIX = $(LIB_PREFIX)/usbvirt
    117113
    118114LIBDRV_PREFIX = $(LIB_PREFIX)/drv
     
    134130endif
    135131
    136 # Build static whenever we use libusb because that library uses
    137 # thread local variables
    138 ifneq ($(findstring usb, $(LIBS)),)
    139         STATIC_BUILD = y
    140 endif
    141 
    142132ifeq ($(STATIC_BUILD), y)
    143133BASE_LIBS = $(LIBC_PREFIX)/libc.a $(LIBSOFTINT_PREFIX)/libsoftint.a
     
    211201JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    212202
     203ifeq ($(POSIX_COMPAT),y)
     204        CFLAGS = -I$(LIBPOSIX_PREFIX)
     205        LIBS += $(LIBPOSIX_PREFIX)/libposix.a
     206endif
     207
    213208ifeq ($(COMPILER),gcc_cross)
    214         CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     209        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    215210        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    216211endif
    217212
    218213ifeq ($(COMPILER),gcc_native)
    219         CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     214        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    220215        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    221216endif
    222217
    223218ifeq ($(COMPILER),icc)
    224         CFLAGS = $(ICC_CFLAGS) $(EXTRA_CFLAGS)
     219        CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)
    225220        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    226221endif
    227222
    228223ifeq ($(COMPILER),clang)
    229         CFLAGS = $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
     224        CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
    230225        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    231226endif
Note: See TracChangeset for help on using the changeset viewer.