189 echo "CXX = ${TOOLCHAIN_CXX}" >> "$TEMP_DIR/config.mk" |
189 echo "CXX = ${TOOLCHAIN_CXX}" >> "$TEMP_DIR/config.mk" |
190 fi |
190 fi |
191 echo "LD = ${TOOLCHAIN_LD}" >> "$TEMP_DIR/config.mk" |
191 echo "LD = ${TOOLCHAIN_LD}" >> "$TEMP_DIR/config.mk" |
192 echo >> "$TEMP_DIR/config.mk" |
192 echo >> "$TEMP_DIR/config.mk" |
193 |
193 |
194 cat "make/${TOOLCHAIN_NAME}.mk" > /dev/null 2>&1 |
194 if [ -f "make/${TOOLCHAIN_NAME}.mk" ]; then |
195 if [ $? -eq 0 ]; then |
195 cat "make/${TOOLCHAIN_NAME}.mk" >> "$TEMP_DIR/config.mk" |
196 echo "include \$(BUILD_ROOT)/make/${TOOLCHAIN_NAME}.mk" >> "$TEMP_DIR/config.mk" |
|
197 else |
196 else |
198 echo "SHLIB_CFLAGS = -fPIC" >> "$TEMP_DIR/config.mk" |
197 echo "SHLIB_CFLAGS = -fPIC" >> "$TEMP_DIR/config.mk" |
199 echo "SHLIB_LDFLAGS = -shared" >> "$TEMP_DIR/config.mk" |
198 echo "SHLIB_LDFLAGS = -shared" >> "$TEMP_DIR/config.mk" |
200 fi |
199 fi |
201 fi |
200 fi |