summaryrefslogtreecommitdiff
path: root/debian/patches/dont-strip-images.diff
blob: 275eb5d0574ac9a8f1ccaabb9c6c2439632e1906 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/common/autoconf/toolchain.m4
+++ b/common/autoconf/toolchain.m4
@@ -679,7 +679,9 @@ AC_DEFUN_ONCE([TOOLCHAIN_SETUP_COMPILER_
     LDEXE="$CC"
     LDCXX="$CXX"
     LDEXECXX="$CXX"
-    POST_STRIP_CMD="$STRIP -g"
+    if test -z "$POST_STRIP_CMD" ; then
+      POST_STRIP_CMD="$STRIP -g"
+    fi
 
     # Linking is different on MacOSX
     if test "x$OPENJDK_TARGET_OS" = xmacosx; then