Changeset bc56f30 in mainline for uspace/lib/posix/Makefile


Ignore:
Timestamp:
2019-05-27T12:38:26Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0d14c25
Parents:
4d51c60
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-13 16:06:49)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-05-27 12:38:26)
Message:

Make some libc and libposix headers usable in C++

These headers either get included from standard C++ headers,
or are standard themselves, which means any unnamespaced nonstandard
identifiers are a problem. This commit attempts to fix those
issues, and removes hacks previously used in libcpp to work around it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/Makefile

    r4d51c60 rbc56f30  
    4141        ../hound/libhound.a \
    4242        ../pcm/libpcm.a \
     43        ../cpp/libcpp.a \
    4344        $(LIBC_PREFIX)/libc.a \
    4445        $(LIBC_PREFIX)/crt0.o \
     
    9697        $(COMMON_CFLAGS)
    9798
     99EXPORT_CXXFLAGS = \
     100        $(COMMON_CXXFLAGS)
     101
    98102include $(USPACE_PREFIX)/Makefile.common
    99103
     
    109113        echo 'HELENOS_CPPFLAGS="$(EXPORT_CPPFLAGS)"' >> $@.new
    110114        echo 'HELENOS_CFLAGS="$(EXPORT_CFLAGS)"' >> $@.new
    111         echo 'HELENOS_CXXFLAGS="$(EXPORT_CFLAGS)"' >> $@.new
     115        echo 'HELENOS_CXXFLAGS="$(EXPORT_CXXFLAGS)"' >> $@.new
    112116        echo 'HELENOS_LDFLAGS="$(EXPORT_LDFLAGS)"' >> $@.new
    113117        echo 'HELENOS_LDLIBS="$(EXPORT_LDLIBS)"' >> $@.new
     
    146150        mkdir -p $(EXPORT_DIR)/include.new/libpcm
    147151        cp -r -L -t $(EXPORT_DIR)/include.new/libpcm ../pcm/include/*
     152        mkdir -p $(EXPORT_DIR)/include.new/libcpp
     153        cp -r -L -t $(EXPORT_DIR)/include.new/libcpp ../cpp/include/*
    148154        mv $(EXPORT_DIR)/include.new $(EXPORT_DIR)/include
Note: See TracChangeset for help on using the changeset viewer.