Changeset - r22788:ee27a55a2a22
[Not reviewed]
master
0 1 0
Charles Pigott - 7 years ago 2018-04-11 20:50:23
charlespigott@googlemail.com
Fix e61435774b: Some systems don't have realpath (#6705)
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -1207,13 +1207,18 @@ make_compiler_cflags() {
 
	# $1 - compiler
 
	# $2 - name of the cflags variable
 
	# $3 - name of the cxxflags variable
 
	# $4 - name of the ldflags variable
 
	# $5 - name of the features variable
 

	
 
	compiler="`realpath \`which $1\``" # resolve symlinks
 
	# Resolve symlinks, if your OS even does them
 
	if [ "$os" = "MINGW" ] || [ "$os" = "CYGWIN" ] || [ "$os" = "DOS" ]; then
 
		compiler="$1"
 
	else
 
		compiler="`realpath \`which $1\``"
 
	fi
 

	
 
	eval eval "flags=\\\$$2"
 
	eval eval "cxxflags=\\\$$3"
 
	eval eval "ldflags=\\\$$4"
 
	eval eval "features=\\\$$5"
 

	
0 comments (0 inline, 0 general)