C/C++/objc are supported. Others are welcome to add the rest, and there're probably other things to be fixed/done as well that I didn't notice. Only tested by me on NetBSD/i386 4.99.19, where it works well.
10 lines
449 B
Makefile
10 lines
449 B
Makefile
# Create compiler driver scripts in ${WRKDIR}.
|
|
(test -d ${WRKDIR}/.gcc/bin || ${MKDIR} ${WRKDIR}/.gcc/bin)
|
|
(cd ${BUILDLINK_PREFIX.gcc42}/bin && bin_files=`${LS} *` && \
|
|
cd ${WRKDIR}/.gcc/bin && \
|
|
for _target_ in $${bin_files} ; do \
|
|
${ECHO} '#!${TOOLS_SHELL}' > $${_target_} && \
|
|
${ECHO} -n "exec ${BUILDLINK_PREFIX.gcc42}/bin/$${_target_}" >> $${_target_} && \
|
|
${ECHO} ' "$$@"' >> $${_target_} && \
|
|
${CHMOD} +x $${_target_}; \
|
|
done )
|