pkgsrc-wip/gcc42/preconfigure.mk
Blair Sadewitz e2413e229d This is a first shot at getting gcc 4.2.0 into pkgsrc. As of now, only
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.
2007-05-08 03:35:16 +00:00

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 )