Changeset 21936 for trunk/Config.kmk


Ignore:
Timestamp:
Jan 12, 2012, 7:46:01 PM (14 years ago)
Author:
dmik
Message:

Config.kmk: Use -idirafter instead of C_INCLUDE_PATH for Toolkit headers.

-idirafter guarantees that the directory is searched not only after user directories
but also after system directories (the C_INCLUDE_PATH ones are searched before
them). This fixes building Odin with GCC installed to the system location using
RPM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r21916 r21936  
    283283#
    284284# We can't add Toolkit includes in _INCS (it will casuse then to be searched
    285 # before GCC headers and lead to conflicts), so use the environment variable.
    286 #
    287 C_INCLUDE_PATH     := $(if $(C_INCLUDE_PATH),$(C_INCLUDE_PATH);)$(PATH_SDK_OS2TK4)/h
    288 CPLUS_INCLUDE_PATH := $(if $(CPLUS_INCLUDE_PATH),$(CPLUS_INCLUDE_PATH);)$(PATH_SDK_OS2TK4)/h
    289 endif
     285# before GCC headers and lead to conflicts), so use -idirafter.
     286#
     287TEMPLATE_OdinCxx_CFLAGS    += -idirafter $(PATH_SDK_OS2TK4)/h
     288TEMPLATE_OdinCxx_CXXFLAGS  += -idirafter $(PATH_SDK_OS2TK4)/h
     289endif
Note: See TracChangeset for help on using the changeset viewer.