aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-09-20 14:38:52 -0500
committerRob Landley <rob@landley.net>2019-09-20 14:38:52 -0500
commitabddc3bb40da525852b2add695d0cb30d12a999d (patch)
tree1dbf37ee6a2aa1c6c3dde04cec0769761f35874f /configure
parenta43497b523ae7db08908d3113f003c6df5e83aea (diff)
downloadtoybox-abddc3bb40da525852b2add695d0cb30d12a999d.tar.gz
ASAN=1 implies NOSTRIP=1, and don't say strip failed for NOSTRIP.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index e386cc3a..4735a7e9 100755
--- a/configure
+++ b/configure
@@ -21,7 +21,7 @@ fi
CFLAGS="$CFLAGS -funsigned-char"
[ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables -fno-strict-aliasing"
# set ASAN=1 to enable "address sanitizer" and debuggable backtraces
-[ -z "$ASAN" ] || CFLAGS="$CFLAGS -O1 -g -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address"
+[ -z "$ASAN" ] || { CFLAGS="$CFLAGS -O1 -g -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address"; NOSTRIP=1; }
# We accept LDFLAGS, but by default don't have anything in it
if [ "$(uname)" != "Darwin" ]
@@ -39,3 +39,5 @@ fi
# If HOSTCC needs CFLAGS or LDFLAGS, just add them to the variable
# ala HOSTCC="blah-cc --static"
[ -z "$HOSTCC" ] && HOSTCC=cc
+
+[ -z "$GENERATED" ] && GENERATED=generated