11 lines
524 B
Makefile
11 lines
524 B
Makefile
# $NetBSD: preconfigure.mk,v 1.1.1.1 2011/07/07 15:59:57 keckhardt Exp $
|
|
# Create compiler driver scripts in ${WRKDIR}.
|
|
(${TEST} -d ${WRKDIR}/.gcc/bin || ${MKDIR} ${WRKDIR}/.gcc/bin)
|
|
(cd ${BUILDLINK_PREFIX.gcc47}/bin && bin_files=`${LS} *` && \
|
|
cd ${WRKDIR}/.gcc/bin && \
|
|
for _target_ in $${bin_files} ; do \
|
|
${ECHO} '#!${TOOLS_SHELL}' > $${_target_} && \
|
|
${ECHO_N} "exec ${BUILDLINK_PREFIX.gcc47}/bin/$${_target_}" >> $${_target_} && \
|
|
${ECHO} ' "$$@"' >> $${_target_} && \
|
|
${CHMOD} +x $${_target_}; \
|
|
done )
|