diff options
author | Andrey Ponomarenko <aponomarenko@rosalab.ru> | 2014-03-05 17:34:32 +0400 |
---|---|---|
committer | Andrey Ponomarenko <aponomarenko@rosalab.ru> | 2014-03-05 17:34:32 +0400 |
commit | d2ed4c6fe9e08b31b17b1a93054396d40f5dc9ef (patch) | |
tree | 53d4dd006fa7b04208297b4a320b4a64e5605740 /modules/Internals | |
parent | 54040a158d7d3fdeba2c37a1e88f14fac6ddd407 (diff) | |
download | abi-compliance-checker-d2ed4c6fe9e08b31b17b1a93054396d40f5dc9ef.tar.gz |
Corrected detection of the GCC target architecture; Added -gcc-options option;
Diffstat (limited to 'modules/Internals')
-rw-r--r-- | modules/Internals/RegTests.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/Internals/RegTests.pm b/modules/Internals/RegTests.pm index f9b89ea..8fdaaf0 100644 --- a/modules/Internals/RegTests.pm +++ b/modules/Internals/RegTests.pm @@ -4748,7 +4748,7 @@ sub runTests($$$$$$$$) $BuildCmd = $GCC_PATH." -shared -x c++ libsample.$Ext -lstdc++ -o libsample.$LIB_EXT -g"; $BuildCmd_Test = $GCC_PATH." -x c++ test.$Ext -lstdc++ -Wl,libsample.$LIB_EXT -o test"; } - if(getArch(1)=~/\A(arm|x86_64)\Z/i) + if(getArch_GCC(1)=~/\A(arm|x86_64)\Z/i) { # relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC $BuildCmd .= " -fPIC"; $BuildCmd_Test .= " -fPIC"; @@ -4781,6 +4781,13 @@ sub runTests($$$$$$$$) $BuildCmd_Test = $GCC_PATH." -x c++ test.$Ext -Wl,libsample.$LIB_EXT -o test"; } } + + if(my $Opts = getGCC_Opts(1)) + { # user-defined options + $BuildCmd .= " ".$Opts; + $BuildCmd_Test .= " ".$Opts; + } + my $MkContent = "all:\n\t$BuildCmd\ntest:\n\t$BuildCmd_Test\n"; if($OSgroup eq "windows") { $MkContent .= "clean:\n\tdel test libsample.so\n"; |