Changeset f356618 in mainline for uspace/Makefile.common


Ignore:
Timestamp:
2016-05-22T21:05:55Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b3364b7c
Parents:
af2254ec (diff), 3a9414e (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 dynamic linking support for thread local storage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    raf2254ec rf356618  
    177177endif
    178178
    179 # Build static whenever we use libusb because that library uses
    180 # thread local variables
    181 ifneq ($(findstring usb, $(LIBS)),)
    182         STATIC_BUILD = y
    183 endif
    184 
    185 # Build static because libpcut is linked against libc which uses thread
    186 # local variables
    187 ifneq ($(TEST_SOURCES),)
    188         STATIC_BUILD = y
    189 endif
    190 
    191179ifeq ($(STATIC_BUILD),y)
    192180        BASE_LIBS = $(LIBC_PREFIX)/libc.a $(LIBSOFTINT_PREFIX)/libsoftint.a
    193         LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld
    194181        ifeq ($(MATH),y)
    195182                BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a
     
    197184else
    198185        BASE_LIBS = $(LIBC_PREFIX)/libc.so.0 $(LIBSOFTINT_PREFIX)/libsoftint.so.0
    199         LFLAGS += -Bdynamic
    200         LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld
     186        LINK_DYNAMIC = y
    201187        ifeq ($(MATH),y)
    202188                BASE_LIBS += $(LIBMATH_PREFIX)/libmath.so.0
    203189        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
    204197endif
    205198
Note: See TracChangeset for help on using the changeset viewer.