Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r7c4b26c raf2254ec  
    160160LIBNETTL_PREFIX = $(LIB_PREFIX)/nettl
    161161
    162 LIBURCU_PREFIX = $(LIB_PREFIX)/urcu
    163 
    164162AFLAGS = --fatal-warnings
    165163LFLAGS = --fatal-warnings
     
    185183endif
    186184
    187 # Build static because liburcu is linked against libc which uses thread
    188 # local variables
    189 ifneq ($(findstring urcu, $(LIBS)),)
    190         STATIC_BUILD = y
    191 endif
    192 
    193185# Build static because libpcut is linked against libc which uses thread
    194186# local variables
     
    199191ifeq ($(STATIC_BUILD),y)
    200192        BASE_LIBS = $(LIBC_PREFIX)/libc.a $(LIBSOFTINT_PREFIX)/libsoftint.a
     193        LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld
    201194        ifeq ($(MATH),y)
    202195                BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a
     
    204197else
    205198        BASE_LIBS = $(LIBC_PREFIX)/libc.so.0 $(LIBSOFTINT_PREFIX)/libsoftint.so.0
    206         LINK_DYNAMIC = y
     199        LFLAGS += -Bdynamic
     200        LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld
    207201        ifeq ($(MATH),y)
    208202                BASE_LIBS += $(LIBMATH_PREFIX)/libmath.so.0
    209203        endif
    210 endif
    211 
    212 ifeq ($(LINK_DYNAMIC),y)
    213         LFLAGS += -Bdynamic
    214         LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld
    215 else
    216         LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld
    217204endif
    218205
     
    306293JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    307294
    308 ifeq ($(FUTEX_UPGRADABLE),y)
    309         CFLAGS += -I$(LIBURCU_PREFIX)/
    310         LIBS += $(LIBURCU_PREFIX)/liburcu.a
    311 endif
    312 
    313295ifeq ($(COMPILER),gcc_cross)
    314296        CFLAGS += $(GCC_CFLAGS)
     
    336318endif
    337319
     320
     321ifneq ($(MAKECMDGOALS),clean)
    338322-include $(DEPEND)
     323endif
    339324
    340325OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
     
    376361
    377362ifneq ($(LIBRARY),)
    378 %.a: $(OBJECTS)
     363$(LIBRARY).a: $(OBJECTS)
    379364        $(AR) rc $@ $(OBJECTS)
    380365endif
    381366
    382 ifneq ($(SLIBRARY),)
    383 %.la: $(LOBJECTS)
     367ifneq ($(LARCHIVE),)
     368$(LARCHIVE): $(LOBJECTS)
    384369        $(AR) rc $@ $(LOBJECTS)
    385370endif
Note: See TracChangeset for help on using the changeset viewer.