Changeset 1cb092d in mainline for uspace/Makefile.common


Ignore:
Timestamp:
2010-05-10T20:21:18Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6db1e27
Parents:
a4125fb1
Message:

Prepare to support size-optimized builds and stripped binaries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    ra4125fb1 r1cb092d  
    104104        find . -name '*.o' -follow -exec rm \{\} \;
    105105
     106ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y)
     107OPTIMIZATION = s
     108else
    106109OPTIMIZATION = 3
     110endif
    107111
    108112GCC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     
    167171$(BINARY): $(LINKER_SCRIPT) $(OBJECTS) $(LIBS) $(BASE_LIBS)
    168172        $(LD) -N $(LFLAGS) -T $(LINKER_SCRIPT) -M -Map $(BINARY).map -o $(BINARY) $(OBJECTS) $(LIBS) $(BASE_LIBS)
     173ifeq ($(CONFIG_STRIP_BINARIES),y)
     174        $(STRIP) $(BINARY)
     175endif
    169176endif
    170177
Note: See TracChangeset for help on using the changeset viewer.