Changeset 009c485 in mainline for uspace/Makefile.common
- Timestamp:
- 2018-05-01T19:02:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 742fc98e
- Parents:
- 5261062
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
r5261062 r009c485 115 115 116 116 AFLAGS = --fatal-warnings 117 L FLAGS = --fatal-warnings--warn-common117 LDFLAGS = -Wl,--fatal-warnings,--warn-common 118 118 119 119 ifeq ($(STATIC_NEEDED),y) … … 141 141 142 142 ifeq ($(LINK_DYNAMIC),y) 143 LFLAGS += -Bdynamic144 143 LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld 145 144 else 145 LDFLAGS += -static 146 146 LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld 147 147 endif … … 245 245 246 246 ifeq ($(CONFIG_STRIP_BINARIES),y) 247 L FLAGS += --strip-all247 LDFLAGS += -s 248 248 endif 249 249 250 250 LIB_CFLAGS = $(CFLAGS) -fPIC 251 LIB_L FLAGS = $(LFLAGS) -shared -soname$(LSONAME)251 LIB_LDFLAGS = $(LDFLAGS) -shared -Wl,-soname,$(LSONAME) 252 252 253 253 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS)) 254 LD_CFLAGS := $(addprefix -Xlinker ,$(LFLAGS))255 254 256 255 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) … … 303 302 ifneq ($(BINARY),) 304 303 $(BINARY): $(LINKER_SCRIPT) $(OBJECTS) $(LIBTAGS) $(BASE_LIBS) 305 $( LD) $(LFLAGS) $(EXTRA_LFLAGS) -T $(LINKER_SCRIPT) -Map$@.map -o $@ $(OBJECTS) $(LIBARGS) $(BASE_LIBS)304 $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) -T $(LINKER_SCRIPT) -Wl,-Map,$@.map -o $@ $(OBJECTS) $(LIBARGS) $(BASE_LIBS) 306 305 endif 307 306 308 307 ifneq ($(TEST_BINARY),) 309 308 $(TEST_BINARY): $(LINKER_SCRIPT) $(TEST_OBJECTS) $(TEST_BINARY_LIBS) $(LIBTAGS) $(BASE_LIBS) 310 $( LD) $(LFLAGS) $(EXTRA_LFLAGS) -T $(LINKER_SCRIPT) -Map$@.map -o $@ $(TEST_OBJECTS) $(TEST_BINARY_LIBS) $(LIBARGS) $(BASE_LIBS)309 $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) -T $(LINKER_SCRIPT) -Wl,-Map,$@.map -o $@ $(TEST_OBJECTS) $(TEST_BINARY_LIBS) $(LIBARGS) $(BASE_LIBS) 311 310 endif 312 311 … … 325 324 326 325 $(SLIBRARY): $(LIB_LINKER_SCRIPT) $(LIBRARY).la 327 $( LD) $(LIB_LFLAGS) $(EXTRA_LFLAGS) -T $(LIB_LINKER_SCRIPT) -Map $@.map -o $@ --whole-archive $(LIBRARY).la--no-whole-archive326 $(CC) $(CFLAGS) $(LIB_LDFLAGS) $(EXTRA_LDFLAGS) -T $(LIB_LINKER_SCRIPT) -Wl,-Map,$@.map -o $@ -Wl,--whole-archive $(LIBRARY).la -Wl,--no-whole-archive 328 327 329 328 $(LSONAME):
Note:
See TracChangeset
for help on using the changeset viewer.