blob: 455862f56304153b1da265e01f05e48628211bb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# $NetBSD: preconfigure.mk,v 1.1.1.1 2011/05/15 00:09:56 wiz Exp $
# Create compiler driver scripts in ${WRKDIR}.
(${TEST} -d ${WRKDIR}/.gcc/bin || ${MKDIR} ${WRKDIR}/.gcc/bin)
(cd ${BUILDLINK_PREFIX.gcc46}/bin && bin_files=`${LS} *` && \
cd ${WRKDIR}/.gcc/bin && \
for _target_ in $${bin_files} ; do \
${ECHO} '#!${TOOLS_SHELL}' > $${_target_} && \
${ECHO_N} "exec ${BUILDLINK_PREFIX.gcc46}/bin/$${_target_}" >> $${_target_} && \
${ECHO} ' "$$@"' >> $${_target_} && \
${CHMOD} +x $${_target_}; \
done )
|