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:
parent
7f49d0f219
commit
5c93ea40ac
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=2163
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
9
x11/XFree86-4-clients/scripts/configure
vendored
9
x11/XFree86-4-clients/scripts/configure
vendored
@ -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
|
||||
|
||||
|
9
x11/XFree86-4-libraries/scripts/configure
vendored
9
x11/XFree86-4-libraries/scripts/configure
vendored
@ -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
|
||||
|
||||
|
9
x11/XFree86-4/scripts/configure
vendored
9
x11/XFree86-4/scripts/configure
vendored
@ -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
|
||||
|
||||
|
9
x11/XFree86/scripts/configure
vendored
9
x11/XFree86/scripts/configure
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user