diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2014-03-03 19:56:58 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-20 10:36:34 +0100 |
commit | 64ffc075209fe88030621c08f297dfbdb2f52c6a (patch) | |
tree | 266941821f41718d07a56975fd52b89ada2f5039 /configure | |
parent | f84e72600e70a0e05b9f81db4b89d2451f5b93c3 (diff) |
do not silently accept -separate-debug-info -static
these options are mutually exclusive.
Change-Id: Ia401edc543a2c2a111798fb4de4db453762efb64
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3441,7 +3441,11 @@ if [ "$CFG_PRECOMPILE" = "auto" ]; then fi # auto-detect support for separate debug info in objcopy -if [ "$CFG_SEPARATE_DEBUG_INFO" != "no" ] && [ "$CFG_SHARED" = "yes" ]; then +if [ "$CFG_SEPARATE_DEBUG_INFO" = "yes" ]; then + if [ "$CFG_SHARED" = "no" ]; then + echo "ERROR: -separate-debug-info is incompatible with -static" + exit 1 + fi TEST_OBJCOPY=`getXQMakeConf QMAKE_OBJCOPY` COMPILER_WITH_FLAGS="$TEST_COMPILER $TEST_COMPILER_CXXFLAGS" if "$unixtests/objcopy.test" "$COMPILER_WITH_FLAGS" "$TEST_OBJCOPY" "$OPT_VERBOSE"; then |