Changeset 9b642f92 in mainline for uspace/Makefile.common


Ignore:
Timestamp:
2017-10-27T18:44:07Z (6 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d088616
Parents:
0798689 (diff), f9c4bc5 (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 reproducibility improvements.

These improvements reduce the alteration to output files due to outside influences and randomness. This makes most of the output files reproducible, and by consequence more easily comparable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r0798689 r9b642f92  
    110110LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint
    111111
     112STARTUP = $(LIBC_PREFIX)/arch/$(UARCH)/src/entry.o
     113
    112114LIBMATH_PREFIX = $(LIB_PREFIX)/math
    113115LIBMATH_INCLUDES_FLAGS = \
     
    234236COMMON_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    235237        -ffreestanding -fno-builtin -nostdlib -nostdinc -fexec-charset=UTF-8 \
    236         -finput-charset=UTF-8 -D__$(ENDIANESS)__ -fno-common
     238        -finput-charset=UTF-8 -D__$(ENDIANESS)__ -fno-common \
     239        -fdebug-prefix-map=$(realpath $(ROOT_PATH))=.
    237240
    238241GCC_CFLAGS = -ffunction-sections -Wall -Wextra -Wno-clobbered \
     
    301304
    302305$(BINARY): $(LINKER_SCRIPT) $(OBJECTS) $(LIBS) $(BASE_LIBS)
    303         $(LD) -n $(LFLAGS) -T $(LINKER_SCRIPT) -M -Map $(BINARY).map -o $(BINARY) $(OBJECTS) $(LIBS) $(BASE_LIBS)
     306        $(LD) -n $(LFLAGS) -T $(LINKER_SCRIPT) -M -Map $(BINARY).map -o $(BINARY) $(STARTUP) $(OBJECTS) $(LIBS) $(BASE_LIBS)
    304307ifeq ($(CONFIG_STRIP_BINARIES),y)
    305308        $(STRIP) $(BINARY)
     
    337340ifneq ($(TEST_OUTPUT),)
    338341$(TEST_OUTPUT): $(LINKER_SCRIPT) $(TEST_OBJECTS) $(TEST_OUTPUT_LIBS)
    339         $(LD) -n $(LFLAGS) -T $(LINKER_SCRIPT) -M -Map $(TEST_OUTPUT).map -o $@ $(TEST_OBJECTS) $(TEST_OUTPUT_LIBS) $(LIBS) $(BASE_LIBS)
     342        $(LD) -n $(LFLAGS) -T $(LINKER_SCRIPT) -M -Map $(TEST_OUTPUT).map -o $@ $(STARTUP) $(TEST_OBJECTS) $(TEST_OUTPUT_LIBS) $(LIBS) $(BASE_LIBS)
    340343ifeq ($(CONFIG_STRIP_BINARIES),y)
    341344        $(STRIP) $(TEST_OUTPUT)
Note: See TracChangeset for help on using the changeset viewer.