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

(-)gcc-config (+13 lines)
Lines 103-108 Link Here
103
	AWK="$(find_path gawk)"
103
	AWK="$(find_path gawk)"
104
	GREP="$(find_path grep)"
104
	GREP="$(find_path grep)"
105
	FIND="$(find_path find)"
105
	FIND="$(find_path find)"
106
	STAT="$(find_path stat)"
106
	CHMOD="$(find_path chmod)"
107
	CHMOD="$(find_path chmod)"
107
	TOUCH="$(find_path touch)"
108
	TOUCH="$(find_path touch)"
108
	ENV_UPDATE="$(find_path env-update)"
109
	ENV_UPDATE="$(find_path env-update)"
Lines 184-189 Link Here
184
	# Add our custom LDPATH
185
	# Add our custom LDPATH
185
	echo "LDPATH=\"${MY_LDPATH}\"" >> /etc/env.d/05gcc
186
	echo "LDPATH=\"${MY_LDPATH}\"" >> /etc/env.d/05gcc
186
187
188
	CC_PATH=${PATH}
189
187
	# Make sure we do not recreate /lib/cpp and /usr/bin/cc ...
190
	# Make sure we do not recreate /lib/cpp and /usr/bin/cc ...
188
#	echo "DISABLE_GEN_GCC_WRAPPERS=\"yes\"" >> /etc/env.d/05gcc
191
#	echo "DISABLE_GEN_GCC_WRAPPERS=\"yes\"" >> /etc/env.d/05gcc
189
	
192
	
Lines 200-205 Link Here
200
		${RM} -f "/usr/bin/${x}"
203
		${RM} -f "/usr/bin/${x}"
201
		${CP} -f /usr/lib/gcc-config/wrapper "/usr/bin/${x}"
204
		${CP} -f /usr/lib/gcc-config/wrapper "/usr/bin/${x}"
202
205
206
		# reset the permisions in case umask is too strict
207
		# use the permission of the final binary if it exists (gcc, ...)
208
		# or of the wrapper if it doesn't (cc, ...)
209
		if [ -f "${CC_PATH}/${x}" ]; then
210
		    X_PERM=`${STAT} -c %a ${CC_PATH}/${x}`
211
		else
212
		    X_PERM=`${STAT} -c %a /usr/lib/gcc-config/wrapper`
213
		fi
214
		${CHMOD} ${X_PERM} "/usr/bin/${x}"
215
203
		if [ "${OLD_CC_COMP}" != "${CC_COMP}" ]
216
		if [ "${OLD_CC_COMP}" != "${CC_COMP}" ]
204
		then
217
		then
205
			${TOUCH} -m "/usr/bin/${x}"
218
			${TOUCH} -m "/usr/bin/${x}"

Return to bug 19395