diff --git a/src/core/core_module.pro b/src/core/core_module.pro
index 7aad0de92dce30136290698cf0162946ef275b63..1d5ea6be0c36bfa1c58acf799bc08a44d9c11e35 100644
--- a/src/core/core_module.pro
+++ b/src/core/core_module.pro
@@ -21,3 +21,7 @@ load(qt_module)
 CONFIG -= bsymbolic_functions
 
 contains(QT_CONFIG, egl): CONFIG += egl
+
+linux {
+    CONFIG(release, debug|release) | contains(QT_CONFIG, separate_debug_info): QMAKE_POST_LINK="cd $(DESTDIR) && $(STRIP) --strip-unneeded $(TARGET)"
+}
diff --git a/src/core/gyp_run.pro b/src/core/gyp_run.pro
index 874434e4049acaae7be1f854a3af8acedbb1408c..925a30d20d63bc757da0f3127e520780c87cd577 100644
--- a/src/core/gyp_run.pro
+++ b/src/core/gyp_run.pro
@@ -20,6 +20,8 @@ cross_compile {
 GYP_CONFIG += disable_glibcxx_debug=1
 !webcore_debug: GYP_CONFIG += remove_webcore_debug_symbols=1
 
+linux:contains(QT_CONFIG, separate_debug_info): GYP_CONFIG += linux_dump_symbols=1
+
 # Append additional platform options defined in GYP_CONFIG
 for (config, GYP_CONFIG): GYP_ARGS += "-D $$config"