nsis-debug-symbols-20040621
authorRobert S Murawski IV <rsm4@ieee.org>
Mon, 21 Jun 2004 22:22:39 +0000 (22:22 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 21 Jun 2004 22:22:39 +0000 (22:22 +0000)
Force Debugging Symbols to on when Debug installer is used

src/WINNT/install/NSIS/OpenAFS.nsi

index 053a31e..a2195d2 100644 (file)
@@ -1341,11 +1341,15 @@ DoLoop:
    SectionSetFlags ${secLoopback} $0
    
 SkipLoop:
-   ; Never install debug symbols unless explicitly selected
-       !IFDEF DEBUG
+   ; Never install debug symbols unless explicitly selected, except in DEBUG mode
+       !IFNDEF DEBUG
    SectionGetFlags ${secDebug} $0
        IntOp $0 $0 & ${SECTION_OFF}
        SectionSetFlags ${secDebug} $0
+   !ELSE
+   SectionGetFlags ${secDebug} $0
+       IntOp $0 $0 | ${SF_SELECTED}
+       SectionSetFlags ${secDebug} $0
    !ENDIF
    ; Our logic should be like this.
    ;     1) If no AFS components are installed, we do a clean install with default options. (Client/Docs)