mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-04-28 13:07:59 +03:00
Added -fno-PIC to liberty and miami builds.
By default with GCC SH, position-independent code is generated. Supposedly this can be less-performant (although the extent to which it is on SH4 is debatable). It also has to produce larger binaries due to offsets in the .text segment. Added -fno-PIC flag to miami and liberty Makefiles. Binary size dropped by over 8KB. Performance looks the same. Don't forget to add this when building KOS too for best results.
This commit is contained in:
parent
2c7335f3f3
commit
bddbc89da1
2 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ CXXFLAGS += $(if $(WITH_32MB),-O3,-Os) \
|
|||
$(if $(WITH_PROF),-DWITH_PROF=\"$(WITH_PROF)\") \
|
||||
-MMD -MP -ffunction-sections -fdata-sections -ffast-math \
|
||||
-fmerge-all-constants -fomit-frame-pointer -ml -std=gnu++20 \
|
||||
-fno-exceptions -fno-rtti -flto=auto -fipa-pta -Wno-write-strings \
|
||||
-fno-exceptions -fno-rtti -flto=auto -fipa-pta -fno-PIC -Wno-write-strings \
|
||||
-Wno-deprecated-enum-enum-conversion -Wno-deprecated-enum-float-conversion \
|
||||
-Wno-multichar -Wno-unused-value -Wno-char-subscripts -Wno-reorder \
|
||||
-Wno-unused-function -Wno-class-memaccess -fno-permissive \
|
||||
|
|
|
@ -136,7 +136,7 @@ CXXFLAGS += $(if $(WITH_32MB),-O3,-Os) \
|
|||
$(if $(WITH_PROF),-DWITH_PROF=\"$(WITH_PROF)\") \
|
||||
-MMD -MP -ffunction-sections -fdata-sections -ffast-math \
|
||||
-fmerge-all-constants -fomit-frame-pointer -ml -std=gnu++20 \
|
||||
-fno-exceptions -fno-rtti -fipa-pta -Wno-write-strings \
|
||||
-fno-exceptions -fno-rtti -fipa-pta -fno-PIC -Wno-write-strings \
|
||||
-Wno-deprecated-enum-enum-conversion -Wno-deprecated-enum-float-conversion \
|
||||
-Wno-multichar -Wno-unused-value -Wno-char-subscripts -Wno-reorder \
|
||||
-Wno-unused-function -Wno-class-memaccess -fno-permissive \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue