Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 348557
Collapse All | Expand All

(-)Configure.orig (-24 lines)
Lines 5164-5174 Link Here
5164
	# is to add the flag to the flags passed to the compiler at link time,
5164
	# is to add the flag to the flags passed to the compiler at link time,
5165
	# as that way the compiler can do the right implementation dependant
5165
	# as that way the compiler can do the right implementation dependant
5166
	# thing. (NWC)
5166
	# thing. (NWC)
5167
	case "$gccversion" in
5168
	?*)	set stack-protector -fstack-protector
5169
		eval $checkccflag
5170
		;;
5171
	esac
5172
	;;
5167
	;;
5173
esac
5168
esac
5174
5169
Lines 5307-5321 Link Here
5307
	;;
5302
	;;
5308
*) dflt="$ldflags";;
5303
*) dflt="$ldflags";;
5309
esac
5304
esac
5310
# See note above about -fstack-protector
5311
case "$ccflags" in
5312
*-fstack-protector*) 
5313
	case "$dflt" in
5314
	*-fstack-protector*) ;; # Don't add it again
5315
	*) dflt="$dflt -fstack-protector" ;; 
5316
	esac
5317
	;;
5318
esac
5319
5305
5320
: Try to guess additional flags to pick up local libraries.
5306
: Try to guess additional flags to pick up local libraries.
5321
for thislibdir in $libpth; do
5307
for thislibdir in $libpth; do
Lines 8107-8122 Link Here
8107
	''|' ') dflt='none' ;;
8093
	''|' ') dflt='none' ;;
8108
	esac
8094
	esac
8109
8095
8110
	case "$ldflags" in
8111
	*-fstack-protector*)
8112
	    case "$dflt" in
8113
			*-fstack-protector*) ;; # Don't add it again
8114
			*) dflt="$dflt -fstack-protector" ;; 
8115
		esac
8116
		;;
8117
	esac
8118
8119
8120
    rp="Any special flags to pass to $ld to create a dynamically loaded library?"
8096
    rp="Any special flags to pass to $ld to create a dynamically loaded library?"
8121
    . ./myread
8097
    . ./myread
8122
    case "$ans" in
8098
    case "$ans" in

Return to bug 348557