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