diff options
-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 |