svn commit: r402352 - head/lang/gcc
Alexey Dokuchaev
danfe at FreeBSD.org
Tue Nov 24 11:01:52 UTC 2015
On Tue, Nov 24, 2015 at 10:19:22AM +0000, Gerald Pfeifer wrote:
> Author: gerald
> URL: https://svnweb.freebsd.org/changeset/ports/402352
>
> [...]
> @@ -168,5 +168,10 @@ post-stage:
> fi
> .endfor
> cd ${WRKDIR} ; ${SED} -i -e "/PLIST.lib/ r PLIST.lib" ${TMPPLIST}
> + # This is the canonical GCC port, so add key commands without
> + # version numbers as part of their names.
Comment is badly indented (will be executed as part of the target recipe).
> + for c in gfortran g++ gcc; do \
> + ${LN} -s ${PREFIX}/bin/"$$c"${SUFFIX} ${STAGEDIR}${PREFIX}/bin/$$c ; \
> + done
Symlinks are badly created (will be broken if e.g. $prefix mounted under
non-/ via NFS), better (untested) approach would be:
.for f in gfortran g++ gcc
${LN} -sf ${f}${SUFFIX} ${STAGEDIR}${PREFIX}/bin/${f}
.endfor
./danfe
More information about the svn-ports-all
mailing list