mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-09-02 03:02:43 +02: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:
@@ -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 \
|
||||
|
Reference in New Issue
Block a user