Changeset 0392c5f in rtems-source-builder


Ignore:
Timestamp:
Jan 18, 2015, 12:23:12 AM (7 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
3963ac4
Parents:
e7cbf74
Message:

Provide flags and include paths for the host when building a Cxc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/defaults.mc

    re7cbf74 r0392c5f  
    306306  CFLAGS="${SB_HOST_CFLAGS}"
    307307  LDFLAGS="${SB_HOST_LDFLAGS}"
     308  # Host
     309  CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
     310  CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
     311  LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
     312  CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
     313  CC_FOR_HOST=$(echo "%{_host_cc} ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
     314  CXX_FOR_HOST=$(echo "%{_host_cxx} ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
     315  # Build
    308316  CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    309317  CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
     
    319327  CXX_FOR_BUILD=${CXX}
    320328fi
    321 export CC CXX CC_FOR_BUILD CXX_FOR_BUILD CFLAGS CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS LDFLAGS_FOR_BUILD'''
     329export CC CXX CFLAGS LDFLAGS
     330export CC_FOR_HOST CXX_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST
     331export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD'''
    322332
    323333# Build/build flags.
Note: See TracChangeset for help on using the changeset viewer.