Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r2d2b8e6 r79ae36dd  
    4444#   EXTRA_CLEAN        additional cleanup targets
    4545#
    46 #   POSIX_COMPAT       set to 'y' to use POSIX compatibility layer
    47 #
    4846# Optionally, for a binary:
    4947#   STATIC_NEEDED      set to 'y' for init binaries, will build statically
     
    106104LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint
    107105
    108 LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix
    109 
    110106LIBBLOCK_PREFIX = $(LIB_PREFIX)/block
    111107LIBFS_PREFIX = $(LIB_PREFIX)/fs
    112108LIBCLUI_PREFIX = $(LIB_PREFIX)/clui
     109
     110LIBEXT2_PREFIX = $(LIB_PREFIX)/ext2
     111
     112LIBUSB_PREFIX = $(LIB_PREFIX)/usb
     113LIBUSBHOST_PREFIX = $(LIB_PREFIX)/usbhost
     114LIBUSBDEV_PREFIX = $(LIB_PREFIX)/usbdev
     115LIBUSBHID_PREFIX = $(LIB_PREFIX)/usbhid
     116LIBUSBVIRT_PREFIX = $(LIB_PREFIX)/usbvirt
    113117
    114118LIBDRV_PREFIX = $(LIB_PREFIX)/drv
     
    130134endif
    131135
     136# Build static whenever we use libusb because that library uses
     137# thread local variables
     138ifneq ($(findstring usb, $(LIBS)),)
     139        STATIC_BUILD = y
     140endif
     141
    132142ifeq ($(STATIC_BUILD), y)
    133143BASE_LIBS = $(LIBC_PREFIX)/libc.a $(LIBSOFTINT_PREFIX)/libsoftint.a
     
    201211JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    202212
    203 ifeq ($(POSIX_COMPAT),y)
    204         CFLAGS = -I$(LIBPOSIX_PREFIX)
    205         LIBS += $(LIBPOSIX_PREFIX)/libposix.a
    206 endif
    207 
    208213ifeq ($(COMPILER),gcc_cross)
    209         CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     214        CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    210215        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    211216endif
    212217
    213218ifeq ($(COMPILER),gcc_native)
    214         CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     219        CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    215220        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    216221endif
    217222
    218223ifeq ($(COMPILER),icc)
    219         CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)
     224        CFLAGS = $(ICC_CFLAGS) $(EXTRA_CFLAGS)
    220225        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    221226endif
    222227
    223228ifeq ($(COMPILER),clang)
    224         CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
     229        CFLAGS = $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
    225230        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    226231endif
Note: See TracChangeset for help on using the changeset viewer.