Skip to content

Commit 1f35cf0

Browse files
committed
WIP
1 parent 65fe443 commit 1f35cf0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rehlds/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,10 @@ void setupToolchain(NativeBinarySpec b) {
170170
} else {
171171
cfg.compilerOptions.args '-Qoption,cpp,--treat_func_as_string_literal_cpp'
172172
}
173-
cfg.compilerOptions.args '-fno-rtti', '-fno-exceptions', '-ggdb'
173+
cfg.compilerOptions.args '-ffunction-sections', '-fdata-sections' // Remove unused code and data
174+
cfg.compilerOptions.args '-fno-rtti', '-fno-exceptions'
174175

176+
cfg.linkerOptions.args '-Wl,--version-script=../version_script.lds', '-Wl,--gc-sections'
175177

176178
cfg.projectLibpath(project, '/lib/linux32')
177179
cfg.extraLibs 'rt', 'dl', 'm', 'steam_api', 'aelf32', 'pthread'

0 commit comments

Comments
 (0)