@@ -80,3 +80,10 @@ if(MINGW)
|
|||||||
"-static-libstdc++"
|
"-static-libstdc++"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||||
|
target_link_options(cgss-borderless-helper PRIVATE
|
||||||
|
"-Wl,--gc-sections"
|
||||||
|
"-s"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ else
|
|||||||
CFLAGS += -O2 -ffunction-sections -fdata-sections
|
CFLAGS += -O2 -ffunction-sections -fdata-sections
|
||||||
CXXFLAGS += -O2 -ffunction-sections -fdata-sections
|
CXXFLAGS += -O2 -ffunction-sections -fdata-sections
|
||||||
LDFLAGS += -Wl,--gc-sections -s
|
LDFLAGS += -Wl,--gc-sections -s
|
||||||
|
HELPER_LDFLAGS += -Wl,--gc-sections -s
|
||||||
endif
|
endif
|
||||||
|
|
||||||
C_SRCS := \
|
C_SRCS := \
|
||||||
|
|||||||
Reference in New Issue
Block a user