- #
- # error messages from 'cc -E' invocation. Again, the offending
- # string is simply not detectable by any means. Since it doesn't
- # do any harm, I didn't pursue it. -- sh
- qaldflags="`echo $qaldflags`"
- qalibs="`getconf XBS5_LP64_OFF64_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`"
- # -q32 and -b32 may have been set by uselargefiles or user.
- # Remove them.
- ccflags="`echo $ccflags | sed -e 's@-q32@@'`"
- ldflags="`echo $ldflags | sed -e 's@-b32@@'`"
- # Tell archiver to use large format. Unless we remove 'ar'
- # from 'trylist', the Configure script will just reset it to 'ar'
- # immediately prior to writing config.sh. This took me hours
- # to figure out.
- trylist="`echo $trylist | sed -e 's@^ar @@' -e 's@ ar @ @g' -e 's@ ar$@@'`"
- ar="ar -X64"
- nm_opt="-X64 $nm_opt"
- # Note: Placing the 'qacflags' variable into the 'ldflags' string
- # is NOT a typo. ldflags is passed to the C compiler for final
- # linking, and it wants -q64 (-b64 is for ld only!).
- case "$qacflags$qaldflags$qalibs" in
- '');;
- *) ccflags="$ccflags $qacflags"
- ldflags="$ldflags $qacflags"
- lddlflags="$qaldflags $lddlflags"
- libswanted="$libswanted $qalibs"
- ;;
+ #
+ # error messages from 'cc -E' invocation. Again, the offending
+ # string is simply not detectable by any means. Since it doesn't
+ # do any harm, I didn't pursue it. -- sh
+ qaldflags="`echo $qaldflags`"
+ qalibs="`getconf XBS5_LP64_OFF64_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`"
+ # -q32 and -b32 may have been set by uselargefiles or user.
+ # Remove them.
+ ccflags="`echo $ccflags | sed -e 's@-q32@@'`"
+ ldflags="`echo $ldflags | sed -e 's@-b32@@'`"
+ case "$cc" in
+ *gcc*)
+ ccflags="`echo $ccflags | sed -e 's@-q64@-maix64@'`"
+ ccflags_uselargefiles="`echo $ccflags_uselargefiles | sed -e 's@-q64@-maix64@'`"
+ qacflags="`echo $qacflags | sed -e 's@-q64@-maix64@'`"
+ ;;
+ esac
+ # Tell archiver to use large format. Unless we remove 'ar'
+ # from 'trylist', the Configure script will just reset it to 'ar'
+ # immediately prior to writing config.sh. This took me hours
+ # to figure out.
+ trylist="`echo $trylist | sed -e 's@^ar @@' -e 's@ ar @ @g' -e 's@ ar$@@'`"
+ ar="ar -X64"
+ nm_opt="-X64 $nm_opt"
+ # Note: Placing the 'qacflags' variable into the 'ldflags' string
+ # is NOT a typo. ldflags is passed to the C compiler for final
+ # linking, and it wants -q64 (-b64 is for ld only!).
+ case "$qacflags$qaldflags$qalibs" in
+ '') ;;
+ *) ccflags="$ccflags $qacflags"
+ ldflags="$ldflags $qacflags"
+ lddlflags="$qaldflags $lddlflags"
+ libswanted="$libswanted $qalibs"
+ ;;