test/make/toolchain.sh

changeset 36
9e386a530bdf
parent 35
57ea620a54ac
child 38
02b000e40e5e
equal deleted inserted replaced
35:57ea620a54ac 36:9e386a530bdf
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

mercurial