Skip to content

Commit 1e82d95

Browse files
committed
Change for debug linker flags
* templates/bmake.mpd:
1 parent d8ba007 commit 1e82d95

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

templates/bmake.mpd

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,25 @@ LINKER_EXE_ARGUMENTS = <%linker_exe_arguments%>
4848

4949
<%foreach(configurations)%>
5050
!ifdef <%normalize(uc(configuration))%>
51-
OCFLAGS = <%if(optimize)%>$(OPTIMIZE_CFLAGS)<%else%><%if(debug_prj)%> $(DEBUG_CFLAGS)<%foreach(debug_macros)%> -D<%debug_macro%><%endfor%><%endif%><%endif%><%foreach(defines)%> -D<%define%><%endfor%><%if(!debug_prj)%> $(RELEASE_CFLAGS)<%endif%>
52-
CFG_DIR = <%intermediate_dir%>\\
53-
LIBMODIFIER = <%if(use_lib_modifier)%><%lib_modifier%><%endif%>
54-
EXEMODIFIER = <%if(use_exe_modifier)%><%lib_modifier%><%endif%>
51+
OCFLAGS = <%if(optimize)%>$(OPTIMIZE_CFLAGS)<%else%><%if(debug_prj)%> $(DEBUG_CFLAGS)<%foreach(debug_macros)%> -D<%debug_macro%><%endfor%><%endif%><%endif%><%foreach(defines)%> -D<%define%><%endfor%><%if(!debug_prj)%> $(RELEASE_CFLAGS)<%endif%>
52+
LFLAGS = <%if(debug_prj)%> $(PDB_FLAGS)<%endif%>
53+
CFG_DIR = <%intermediate_dir%>\\
54+
LIBMODIFIER = <%if(use_lib_modifier)%><%lib_modifier%><%endif%>
55+
EXEMODIFIER = <%if(use_exe_modifier)%><%lib_modifier%><%endif%>
5556
<%if(type_is_static)%>
56-
STATIC_CFG = 1
57+
STATIC_CFG = 1
5758
<%endif%>
5859
<%if(type_is_static || need_staticflags)%>
5960
<%if(staticflags)%>
6061
STATIC_FLAGS =<%foreach(staticflags)%> -D<%staticflag%><%endfor%>
6162
<%endif%>
6263
<%else%>
6364
<%if(dynamicflags)%>
64-
DYN_FLAGS =<%foreach(dynamicflags)%> -D<%dynamicflag%><%endfor%>
65+
DYN_FLAGS =<%foreach(dynamicflags)%> -D<%dynamicflag%><%endfor%>
6566
<%endif%>
6667
<%endif%>
6768
<%if(postlinkrmext)%>
68-
POSTLINKRM = <%postlinkrmext%>
69+
POSTLINKRM = <%postlinkrmext%>
6970
<%endif%>
7071
<%if(exename)%>
7172
EXEOUTPUTDIR = <%if(exeout)%><%exeout%><%if(windows_style)%>\<%output_dir("Debug")%><%endif%><%else%><%if(windows_style)%><%output_dir("Debug")%><%else%><%output_dir(".")%><%endif%><%endif%>\\
@@ -128,9 +129,10 @@ OBJFILES = \
128129
<%if(libpaths)%>
129130

130131
LFLAGS = \
132+
$(LFLAGS) \
131133
$(LINKER_PATHS) \
132134
<%if(debug_prj)%>
133-
-v $(PDB_FLAGS) \
135+
-v \
134136
-r \
135137
<%endif%>
136138
<%if(linkflags)%>

0 commit comments

Comments
 (0)