Changes in uspace/Makefile.common [af2254ec:7c4b26c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
raf2254ec r7c4b26c 160 160 LIBNETTL_PREFIX = $(LIB_PREFIX)/nettl 161 161 162 LIBURCU_PREFIX = $(LIB_PREFIX)/urcu 163 162 164 AFLAGS = --fatal-warnings 163 165 LFLAGS = --fatal-warnings … … 183 185 endif 184 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 185 193 # Build static because libpcut is linked against libc which uses thread 186 194 # local variables … … 191 199 ifeq ($(STATIC_BUILD),y) 192 200 BASE_LIBS = $(LIBC_PREFIX)/libc.a $(LIBSOFTINT_PREFIX)/libsoftint.a 193 LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld194 201 ifeq ($(MATH),y) 195 202 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a … … 197 204 else 198 205 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 206 LINK_DYNAMIC = y 201 207 ifeq ($(MATH),y) 202 208 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.so.0 203 209 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 204 217 endif 205 218 … … 293 306 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py 294 307 308 ifeq ($(FUTEX_UPGRADABLE),y) 309 CFLAGS += -I$(LIBURCU_PREFIX)/ 310 LIBS += $(LIBURCU_PREFIX)/liburcu.a 311 endif 312 295 313 ifeq ($(COMPILER),gcc_cross) 296 314 CFLAGS += $(GCC_CFLAGS) … … 318 336 endif 319 337 320 321 ifneq ($(MAKECMDGOALS),clean)322 338 -include $(DEPEND) 323 endif324 339 325 340 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) … … 361 376 362 377 ifneq ($(LIBRARY),) 363 $(LIBRARY).a: $(OBJECTS)378 %.a: $(OBJECTS) 364 379 $(AR) rc $@ $(OBJECTS) 365 380 endif 366 381 367 ifneq ($( LARCHIVE),)368 $(LARCHIVE): $(LOBJECTS)382 ifneq ($(SLIBRARY),) 383 %.la: $(LOBJECTS) 369 384 $(AR) rc $@ $(LOBJECTS) 370 385 endif
Note:
See TracChangeset
for help on using the changeset viewer.