Changeset c8bb1633 in mainline for uspace/Makefile.common


Ignore:
Timestamp:
2013-07-10T08:58:49Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3908355, 4c53333
Parents:
30c1b75 (diff), 98abd40 (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:

Extending POSIX library

Merge from lp:~vojtech-horky/helenos/gcc-port.

This is work-in-progress merge from branch aimed at bringing GCC to run
inside HelenOS.

The most notable change is dealing with the name clashes in libposix and
libc. For ported applications, the libposix headers looks as normal
POSIX headers and there is no need to do preprocessor-based renaming inside
the ported application. The renaming is done inside object files instead.
See revision 1745 in lp:~vojtech-horky/helenos/gcc-port [1] for more
detailed explanation.
The solution is definitely not perfect but shall deal with the naming
conflicts in much safer manner than using the redefines.

There were some other changes as well, mostly small ones.

  • Add some functions, some as ToDo ones (i.e. empty implementation).
  • Add more POSIX headers, split some existing.

[1] http://bazaar.launchpad.net/~vojtech-horky/helenos/gcc-port/revision/1745

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r30c1b75 rc8bb1633  
    222222endif
    223223
    224 ## Setup platform configuration
    225 #
    226 
    227 -include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common
    228 
    229 ## Compilation options
    230 #
    231 
    232 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    233 
     224# Prepare for POSIX before including platform specific stuff
    234225ifeq ($(POSIX_COMPAT),y)
    235226        CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix  -I$(LIBPOSIX_PREFIX)/include/
    236         LIBS += $(LIBPOSIX_PREFIX)/libposix.a
    237 endif
     227        BASE_LIBS = $(LIBPOSIX_PREFIX)/libposixaslibc.a $(LIBPOSIX_PREFIX)/libc4posix.a $(LIBSOFTINT_PREFIX)/libsoftint.a
     228endif
     229
     230## Setup platform configuration
     231#
     232
     233-include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common
     234
     235## Compilation options
     236#
     237
     238JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    238239
    239240ifeq ($(COMPILER),gcc_cross)
Note: See TracChangeset for help on using the changeset viewer.