Changeset f570cdf in mainline for uspace/Makefile.common
- Timestamp:
- 2016-05-24T15:32:57Z (8 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
rdcc150cb rf570cdf 160 160 LIBNETTL_PREFIX = $(LIB_PREFIX)/nettl 161 161 162 LIBURCU_PREFIX = $(LIB_PREFIX)/urcu163 164 162 AFLAGS = --fatal-warnings 165 163 LFLAGS = --fatal-warnings … … 179 177 endif 180 178 181 # Build static whenever we use libusb because that library uses182 # thread local variables183 ifneq ($(findstring usb, $(LIBS)),)184 STATIC_BUILD = y185 endif186 187 # Build static because liburcu is linked against libc which uses thread188 # local variables189 ifneq ($(findstring urcu, $(LIBS)),)190 STATIC_BUILD = y191 endif192 193 # Build static because libpcut is linked against libc which uses thread194 # local variables195 ifneq ($(TEST_SOURCES),)196 STATIC_BUILD = y197 endif198 199 179 ifeq ($(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 202 181 ifeq ($(MATH),y) 203 182 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a … … 205 184 else 206 185 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 209 187 ifeq ($(MATH),y) 210 188 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.so.0 211 189 endif 190 endif 191 192 ifeq ($(LINK_DYNAMIC),y) 193 LFLAGS += -Bdynamic 194 LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld 195 else 196 LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld 212 197 endif 213 198 … … 301 286 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py 302 287 303 ifeq ($(FUTEX_UPGRADABLE),y)304 CFLAGS += -I$(LIBURCU_PREFIX)/305 LIBS += $(LIBURCU_PREFIX)/liburcu.a306 endif307 308 288 ifeq ($(COMPILER),gcc_cross) 309 289 CFLAGS += $(GCC_CFLAGS) … … 378 358 endif 379 359 380 ifneq ($( SLIBRARY),)381 $( SLIBRARY).la: $(LOBJECTS)360 ifneq ($(LARCHIVE),) 361 $(LARCHIVE): $(LOBJECTS) 382 362 $(AR) rc $@ $(LOBJECTS) 383 363 endif
Note:
See TracChangeset
for help on using the changeset viewer.