Changeset 7570a95f in mainline for uspace/Makefile.common


Ignore:
Timestamp:
2018-09-18T14:50:22Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b8be79
Parents:
173b3bd
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-09-14 16:59:25)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-09-18 14:50:22)
Message:

Pass system include dirs via -isystem, for correct ordering

We need those directories to be considered after any -I specified by
the user, otherwise ordering is a problem.

By default, GCC doesn't produce warnings for system headers.
We want those warnings anyway, so we enable them specifically.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r173b3bd r7570a95f  
    9999LIBC_PREFIX = $(LIB_PREFIX)/c
    100100LIBC_INCLUDES_FLAGS = \
    101         -I$(LIBC_PREFIX)/include \
    102         -I$(LIBC_PREFIX)/arch/$(UARCH)/include \
    103         -I$(ROOT_PATH)/abi/include
     101        -isystem $(LIBC_PREFIX)/include \
     102        -isystem $(LIBC_PREFIX)/arch/$(UARCH)/include \
     103        -isystem $(ROOT_PATH)/abi/include
    104104
    105105LIBCPP_PREFIX = $(LIB_PREFIX)/cpp
    106 LIBCPP_INCLUDES_FLAGS = -I$(LIBCPP_PREFIX)/include
     106LIBCPP_INCLUDES_FLAGS = -isystem $(LIBCPP_PREFIX)/include
    107107
    108108LIBDLTEST_PREFIX = $(LIB_PREFIX)/dltest
     
    184184        -Wmissing-prototypes \
    185185        -Wwrite-strings \
    186         -Werror-implicit-function-declaration
     186        -Werror-implicit-function-declaration \
     187        -Wsystem-headers \
     188        -Wunknown-pragmas
    187189
    188190# XXX: -fno-builtin-strftime is for a seemingly spurious format warning.
Note: See TracChangeset for help on using the changeset viewer.