Index: native_client_sdk/src/gonacl_appengine/src/bullet/Makefile |
diff --git a/native_client_sdk/src/gonacl_appengine/src/bullet/Makefile b/native_client_sdk/src/gonacl_appengine/src/bullet/Makefile |
index 77ff8c07c145b02f8b502c46169d42e68641fd0f..016d9ea3c1848324600a1221b0fd5a8cb4907fc4 100644 |
--- a/native_client_sdk/src/gonacl_appengine/src/bullet/Makefile |
+++ b/native_client_sdk/src/gonacl_appengine/src/bullet/Makefile |
@@ -28,7 +28,9 @@ SOURCES = \ |
$(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS)))) |
-ifeq ($(CONFIG),Release) |
+# The PNaCl workflow uses both an unstripped and finalized/stripped binary. |
+# Or, only produce a stripped binary for Release configurations (not Debug). |
+ifneq (,$(or $(findstring pnacl,$(TOOLCHAIN)),$(findstring Release,$(CONFIG)))) |
$(eval $(call LINK_RULE,$(TARGET)_unstripped,$(SOURCES),$(LIBS),$(DEPS))) |
$(eval $(call STRIP_RULE,$(TARGET),$(TARGET)_unstripped)) |
else |