Changeset f570cdf in mainline for uspace/Makefile.common


Ignore:
Timestamp:
2016-05-24T15:32:57Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c170438
Parents:
dcc150cb (diff), 0a981e3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge with mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    rdcc150cb rf570cdf  
    160160LIBNETTL_PREFIX = $(LIB_PREFIX)/nettl
    161161
    162 LIBURCU_PREFIX = $(LIB_PREFIX)/urcu
    163 
    164162AFLAGS = --fatal-warnings
    165163LFLAGS = --fatal-warnings
     
    179177endif
    180178
    181 # Build static whenever we use libusb because that library uses
    182 # thread local variables
    183 ifneq ($(findstring usb, $(LIBS)),)
    184         STATIC_BUILD = y
    185 endif
    186 
    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 
    193 # Build static because libpcut is linked against libc which uses thread
    194 # local variables
    195 ifneq ($(TEST_SOURCES),)
    196         STATIC_BUILD = y
    197 endif
    198 
    199179ifeq ($(STATIC_BUILD),y)
    200         BASE_LIBS = $(LIBC_PREFIX)/libc.a $(LIBURCU_PREFIX)/liburcu.a $(LIBSOFTINT_PREFIX)/libsoftint.a
    201         LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld
     180        BASE_LIBS = $(LIBC_PREFIX)/libc.a $(LIBSOFTINT_PREFIX)/libsoftint.a
    202181        ifeq ($(MATH),y)
    203182                BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a
     
    205184else
    206185        BASE_LIBS = $(LIBC_PREFIX)/libc.so.0 $(LIBSOFTINT_PREFIX)/libsoftint.so.0
    207         LFLAGS += -Bdynamic
    208         LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld
     186        LINK_DYNAMIC = y
    209187        ifeq ($(MATH),y)
    210188                BASE_LIBS += $(LIBMATH_PREFIX)/libmath.so.0
    211189        endif
     190endif
     191
     192ifeq ($(LINK_DYNAMIC),y)
     193        LFLAGS += -Bdynamic
     194        LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld
     195else
     196        LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld
    212197endif
    213198
     
    301286JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    302287
    303 ifeq ($(FUTEX_UPGRADABLE),y)
    304         CFLAGS += -I$(LIBURCU_PREFIX)/
    305         LIBS += $(LIBURCU_PREFIX)/liburcu.a
    306 endif
    307 
    308288ifeq ($(COMPILER),gcc_cross)
    309289        CFLAGS += $(GCC_CFLAGS)
     
    378358endif
    379359
    380 ifneq ($(SLIBRARY),)
    381 $(SLIBRARY).la: $(LOBJECTS)
     360ifneq ($(LARCHIVE),)
     361$(LARCHIVE): $(LOBJECTS)
    382362        $(AR) rc $@ $(LOBJECTS)
    383363endif
Note: See TracChangeset for help on using the changeset viewer.