diff options
author | dhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-08-09 05:09:51 +0000 |
---|---|---|
committer | dhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-08-09 05:09:51 +0000 |
commit | 36b8c90a30070a9ecde271aab841015c83f838d9 (patch) | |
tree | 960024f754d1fd8db2c9124cb833a6872f0f6cd2 /include | |
parent | 542fa3f085095dbfd6a8526550a76f6a652c72cd (diff) | |
download | ATCD-36b8c90a30070a9ecde271aab841015c83f838d9.tar.gz |
ChangeLogTag:Sat Aug 9 05:16:32 UTC 2003 Don Hinton <dhinton@dresystems.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/makeinclude/platform_g++_common.GNU | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/makeinclude/platform_g++_common.GNU b/include/makeinclude/platform_g++_common.GNU index c35f6a1208b..53bb13d727b 100644 --- a/include/makeinclude/platform_g++_common.GNU +++ b/include/makeinclude/platform_g++_common.GNU @@ -68,7 +68,8 @@ ifeq ($(shared_libs), 1) endif # DLD = CXX_FOR_VERSION_TEST # The -E option is GNU ld specific - ifeq (GNU ld, $(findstring GNU ld,$(shell $(LD_FOR_VERSION_TEST) -v))) + GNU_LD := $(shell sh -c '$(LD_FOR_VERSION_TEST) -v 2>&1 | grep -i "GNU ld" /dev/null; echo $$?') + ifeq ($(GNU_LD),1) # Make sure this version of ld supports the -E option. LD_EXPORT_DEFINED := $(shell sh -c '$(LD_FOR_VERSION_TEST) -E 2>&1 | grep -i -e "(option|flag)" /dev/null; echo $$?') |