diff options
Diffstat (limited to 'app-editors/jasspa-microemacs/files/20091011-cc-detect.patch')
-rw-r--r-- | app-editors/jasspa-microemacs/files/20091011-cc-detect.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app-editors/jasspa-microemacs/files/20091011-cc-detect.patch b/app-editors/jasspa-microemacs/files/20091011-cc-detect.patch new file mode 100644 index 000000000000..123d78c895ff --- /dev/null +++ b/app-editors/jasspa-microemacs/files/20091011-cc-detect.patch @@ -0,0 +1,32 @@ +https://bugs.gentoo.org/729258 + +--- me091011-orig/src/build ++++ me091011/src/build +@@ -158,12 +158,8 @@ + exit 1 + fi + +- # use cc by default if available + if [ -r $MAKEBAS.mak ] ; then +- # try to detect cc, if found use it in preference +- if [ "`type cc | cut -b 1-5`" = "cc is" ] ; then +- MAKEFILE=$MAKEBAS.mak +- fi ++ MAKEFILE=$MAKEBAS.mak + # Special rules for sun, if cc is /usr/ucb then this is a dummy. + if [ $PLATFORM = "SunOS" ] ; then + WHATCC=`/usr/bin/which cc` +@@ -173,12 +169,8 @@ + fi + fi + if [ -z "$MAKEFILE" ] ; then +- # failed to find cc, try gcc + if [ -r $MAKEBAS.gmk ] ; then +- # try to detect gcc, if found use it in preference +- if [ "`type gcc | cut -b 1-6`" = "gcc is" ] ; then +- MAKEFILE=$MAKEBAS.gmk +- fi ++ MAKEFILE=$MAKEBAS.gmk + fi + fi + if [ -z "$MAKEFILE" ] ; then |