1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Add -fno-strength-reduce to compilation flags

Ask the user if he/she wants to use gnu malloc
This commit is contained in:
Jean-Marc Zucconi 1995-09-18 20:30:21 +00:00
parent 7f49d0f219
commit 5c93ea40ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=2163
6 changed files with 30 additions and 24 deletions

View File

@ -92,6 +92,9 @@ if [ $answ = NO ]; then
echo "#define BuildXIE NO" >> $F
fi
echo
yesno "Do you want your X applications linked with gnu malloc? [YES] "
gnumalloc=$answ
echo
echo "End of configuration questions. No more user input required"
echo
}
@ -193,11 +196,9 @@ sed -e "s/2.0.5/$version/" \
-e "s/OSMajorVersion *2/OSMajorVersion $1/" \
-e "s/OSMinorVersion *0/OSMinorVersion $2/" \
-e "s/OSTeenyVersion *5/OSTeenyVersion $3/" \
-e "s/m486/m486 -fno-strength-reduce/" \
-e "s/UseGnuMalloc.*YES/UseGnuMalloc $gnumalloc/" \
<FreeBSD.cf.old >FreeBSD.cf
#you may change ExtraLibraries too:
#echo "#undef ExtraLibraries >> FreeBSD.cf
#echo "#define ExtraLibraries -lgnumalloc >>FreeBSD.cf
exit 0

View File

@ -92,6 +92,9 @@ if [ $answ = NO ]; then
echo "#define BuildXIE NO" >> $F
fi
echo
yesno "Do you want your X applications linked with gnu malloc? [YES] "
gnumalloc=$answ
echo
echo "End of configuration questions. No more user input required"
echo
}
@ -193,11 +196,9 @@ sed -e "s/2.0.5/$version/" \
-e "s/OSMajorVersion *2/OSMajorVersion $1/" \
-e "s/OSMinorVersion *0/OSMinorVersion $2/" \
-e "s/OSTeenyVersion *5/OSTeenyVersion $3/" \
-e "s/m486/m486 -fno-strength-reduce/" \
-e "s/UseGnuMalloc.*YES/UseGnuMalloc $gnumalloc/" \
<FreeBSD.cf.old >FreeBSD.cf
#you may change ExtraLibraries too:
#echo "#undef ExtraLibraries >> FreeBSD.cf
#echo "#define ExtraLibraries -lgnumalloc >>FreeBSD.cf
exit 0

View File

@ -92,6 +92,9 @@ if [ $answ = NO ]; then
echo "#define BuildXIE NO" >> $F
fi
echo
yesno "Do you want your X applications linked with gnu malloc? [YES] "
gnumalloc=$answ
echo
echo "End of configuration questions. No more user input required"
echo
}
@ -193,11 +196,9 @@ sed -e "s/2.0.5/$version/" \
-e "s/OSMajorVersion *2/OSMajorVersion $1/" \
-e "s/OSMinorVersion *0/OSMinorVersion $2/" \
-e "s/OSTeenyVersion *5/OSTeenyVersion $3/" \
-e "s/m486/m486 -fno-strength-reduce/" \
-e "s/UseGnuMalloc.*YES/UseGnuMalloc $gnumalloc/" \
<FreeBSD.cf.old >FreeBSD.cf
#you may change ExtraLibraries too:
#echo "#undef ExtraLibraries >> FreeBSD.cf
#echo "#define ExtraLibraries -lgnumalloc >>FreeBSD.cf
exit 0

View File

@ -92,6 +92,9 @@ if [ $answ = NO ]; then
echo "#define BuildXIE NO" >> $F
fi
echo
yesno "Do you want your X applications linked with gnu malloc? [YES] "
gnumalloc=$answ
echo
echo "End of configuration questions. No more user input required"
echo
}
@ -193,11 +196,9 @@ sed -e "s/2.0.5/$version/" \
-e "s/OSMajorVersion *2/OSMajorVersion $1/" \
-e "s/OSMinorVersion *0/OSMinorVersion $2/" \
-e "s/OSTeenyVersion *5/OSTeenyVersion $3/" \
-e "s/m486/m486 -fno-strength-reduce/" \
-e "s/UseGnuMalloc.*YES/UseGnuMalloc $gnumalloc/" \
<FreeBSD.cf.old >FreeBSD.cf
#you may change ExtraLibraries too:
#echo "#undef ExtraLibraries >> FreeBSD.cf
#echo "#define ExtraLibraries -lgnumalloc >>FreeBSD.cf
exit 0

View File

@ -92,6 +92,9 @@ if [ $answ = NO ]; then
echo "#define BuildXIE NO" >> $F
fi
echo
yesno "Do you want your X applications linked with gnu malloc? [YES] "
gnumalloc=$answ
echo
echo "End of configuration questions. No more user input required"
echo
}
@ -193,11 +196,9 @@ sed -e "s/2.0.5/$version/" \
-e "s/OSMajorVersion *2/OSMajorVersion $1/" \
-e "s/OSMinorVersion *0/OSMinorVersion $2/" \
-e "s/OSTeenyVersion *5/OSTeenyVersion $3/" \
-e "s/m486/m486 -fno-strength-reduce/" \
-e "s/UseGnuMalloc.*YES/UseGnuMalloc $gnumalloc/" \
<FreeBSD.cf.old >FreeBSD.cf
#you may change ExtraLibraries too:
#echo "#undef ExtraLibraries >> FreeBSD.cf
#echo "#define ExtraLibraries -lgnumalloc >>FreeBSD.cf
exit 0

View File

@ -92,6 +92,9 @@ if [ $answ = NO ]; then
echo "#define BuildXIE NO" >> $F
fi
echo
yesno "Do you want your X applications linked with gnu malloc? [YES] "
gnumalloc=$answ
echo
echo "End of configuration questions. No more user input required"
echo
}
@ -193,11 +196,9 @@ sed -e "s/2.0.5/$version/" \
-e "s/OSMajorVersion *2/OSMajorVersion $1/" \
-e "s/OSMinorVersion *0/OSMinorVersion $2/" \
-e "s/OSTeenyVersion *5/OSTeenyVersion $3/" \
-e "s/m486/m486 -fno-strength-reduce/" \
-e "s/UseGnuMalloc.*YES/UseGnuMalloc $gnumalloc/" \
<FreeBSD.cf.old >FreeBSD.cf
#you may change ExtraLibraries too:
#echo "#undef ExtraLibraries >> FreeBSD.cf
#echo "#define ExtraLibraries -lgnumalloc >>FreeBSD.cf
exit 0