Skip to content

Commit c6ac370

Browse files
authored
LINUX: enable C profiling, '-pg' switch needed in linking (#365)
1 parent 37e0c16 commit c6ac370

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

targets/linux/build-binary

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ make_sounds make_soundfile_linux
5656
echo " => compiling application.."
5757
tgt=$apptgtdir/$SYS_APPNAME$SYS_EXEFIX
5858

59+
if [ "$SYS_MODE" = "debug" ]; then
60+
# enable profiling
61+
cflag_additions="$cflag_additions -pg"
62+
fi
63+
5964
if [ `is_standalone_app` = "yes" ]; then
6065
veval "$SYS_CC -I$SYS_PREFIX/include \
6166
$cflag_additions -DUSECONSOLE -o $tgt \

0 commit comments

Comments
 (0)