Skip to content

Commit

Permalink
Merge pull request #217 from jwillemsen/jwi-linkerflags
Browse files Browse the repository at this point in the history
Add necessary linker flags when enabling unicode with bcc64x
  • Loading branch information
jwillemsen authored Jul 29, 2024
2 parents bd652b0 + 6fc43da commit 3a8acfa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions templates/bmake.mpd
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
CC = <%cc%>
OPTIMIZE_CFLAGS = <%optimize_flags%>
UNICODE_CFLAGS = <%unicode_flags%>
UNICODE_LFLAGS = <%unicode_linker_flags%>
PDB_FLAGS = <%pdb_flags%>
DEBUG_CFLAGS = <%debug_flags%>
RELEASE_CFLAGS = <%release_flags%>
Expand Down Expand Up @@ -80,6 +81,7 @@ EXEOUTPUTDIR = <%if(exeout)%><%exeout%><%if(windows_style)%>\<%output_dir("Debug

!ifdef UNICODE
UC_CFLAGS = $(UNICODE_CFLAGS)
UC_LFLAGS = $(UNICODE_LFLAGS)
UNICODE_DIR = Unicode\\
UC_MAIN = w
ULIBMODIFIER = <%unicode_lib_modifier%>
Expand Down
10 changes: 7 additions & 3 deletions templates/bmakecommon.mpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ debug_flags = -v -y -Od -vi- -k
release_flags =
optimize_flags = -O1
unicode_flags = -WU
unicode_linker_flags =
pdb_flags =
warn_flags = -w-rvl -w-rch -w-ccc -w-obs -w-aus -w-pia -w-inl -w-mls
stack_flag = /S:
Expand Down Expand Up @@ -54,6 +55,7 @@ debug_flags = -Od -vi-
release_flags =
optimize_flags = -O3
unicode_flags = -WU
unicode_linker_flags =
pdb_flags =
warn_flags =
stack_flag = /S:
Expand Down Expand Up @@ -85,6 +87,7 @@ debug_flags = -g -O0
release_flags =
optimize_flags = -O3
unicode_flags = -WU
unicode_linker_flags =
pdb_flags =
warn_flags =
stack_flag = /S:
Expand Down Expand Up @@ -116,8 +119,9 @@ debug_flags = -g -O0
release_flags = -Wno-ignored-attributes
optimize_flags = -O3
unicode_flags = -tU
unicode_linker_flags = -tU
debug_ext = .pdb
pdb_flags = -Xlinker -pdb -Xlinker $(OUTPUTDIR:\=/)$(NAME).$(DEBUG_EXT)
pdb_flags = -Xlinker -pdb -Xlinker $(OUTPUTDIR:\=/)$(NAME)$(DEBUG_EXT)
warn_flags =
stack_flag = -Xlinker --stack=
cc = bcc64x
Expand All @@ -138,6 +142,6 @@ tlib = tlib64
dllflags = -tD -tR
exeflags = -tR
object_search_path = 0
linker_dll_arguments = --driver-mode=g++ $(DLLFLAGS) $(LFLAGS:\=/) $(OBJFILES:\=/) -o $(OUTPUTDIR:\=/)$(NAME)$(DLL_EXT) -Xlinker --out-implib -Xlinker $(OUTPUTDIR:\=/)$(NAME).lib $(LIBFILES:\=/) $(RESOURCE:\=/)
linker_exe_arguments = --driver-mode=g++ $(EXEFLAGS) $(LFLAGS:\=/) $(OBJFILES:\=/) -o $(OUTPUTDIR:\=/)$(NAME)$(EXE_EXT) $(LIBFILES:\=/) $(RESOURCE:\=/)
linker_dll_arguments = --driver-mode=g++ $(DLLFLAGS) $(UC_LFLAGS) $(LFLAGS:\=/) $(OBJFILES:\=/) -o $(OUTPUTDIR:\=/)$(NAME)$(DLL_EXT) -Xlinker --out-implib -Xlinker $(OUTPUTDIR:\=/)$(NAME).lib $(LIBFILES:\=/) $(RESOURCE:\=/)
linker_exe_arguments = --driver-mode=g++ $(EXEFLAGS) $(UC_LFLAGS) $(LFLAGS:\=/) $(OBJFILES:\=/) -o $(OUTPUTDIR:\=/)$(NAME)$(EXE_EXT) $(LIBFILES:\=/) $(RESOURCE:\=/)
}

0 comments on commit 3a8acfa

Please sign in to comment.