File tree Expand file tree Collapse file tree 6 files changed +6
-5
lines changed
Expand file tree Collapse file tree 6 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ set_target_properties(SDL2 PROPERTIES
135135 NO_SONAME ON
136136 OUTPUT_NAME "SDL2"
137137)
138+ target_link_options (SDL2 PRIVATE -s)
138139
139140# Copy output to our dll folders
140141# This requires a bit of magic (add_custom_command is not allowed for targets made with add_subdirectory)
Original file line number Diff line number Diff line change 11CXX = g++
22
33CFLAGS = -Wall -Wextra -Wpedantic -std=c++11 -O3 -fPIC -fvisibility=hidden -fomit-frame-pointer -fno-exceptions
4- LFLAGS = -shared
4+ LFLAGS = -shared -s
55
66SRCS = LibretroBridge.cpp
77
Original file line number Diff line number Diff line change 11CC = gcc
22
33CFLAGS = -Wall -Wextra -O3
4- LFLAGS = -shared
4+ LFLAGS = -shared -s
55
66all : blip_buf
77
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ rm -rf build
1515mkdir build
1616cd build
1717cmake ../encore -DCMAKE_BUILD_TYPE=Release -DENABLE_LTO=ON -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX \
18- -DCMAKE_C_FLAGS=" -fuse-ld=lld" -DCMAKE_CXX_FLAGS=" -fuse-ld=lld" -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DENABLE_VULKAN=OFF -G Ninja
18+ -DCMAKE_C_FLAGS=" -fuse-ld=lld" -DCMAKE_CXX_FLAGS=" -fuse-ld=lld" -DCMAKE_SHARED_LINKER_FLAGS= " -s " - DCMAKE_POSITION_INDEPENDENT_CODE=ON -DENABLE_VULKAN=OFF -G Ninja
1919ninja
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ TARGET = bizlynx.dll
1616
1717LDFLAGS_32 = -static -static-libgcc -static-libstdc++
1818LDFLAGS_64 =
19- LDFLAGS = -shared $(LDFLAGS_$(ARCH ) ) $(CXXFLAGS )
19+ LDFLAGS = -shared $(LDFLAGS_$(ARCH ) ) $(CXXFLAGS ) -s
2020
2121DEST_64 = ../../Assets/dll
2222DESTCOPY_64 = ../../output/dll
Original file line number Diff line number Diff line change 2020
2121LDFLAGS_32 = -static -static-libgcc -static-libstdc++
2222LDFLAGS_64 =
23- LDFLAGS = -shared $(LDFLAGS_$(ARCH ) ) $(CXXFLAGS )
23+ LDFLAGS = -shared $(LDFLAGS_$(ARCH ) ) $(CXXFLAGS ) -s
2424
2525DEST_64 = ../../Assets/dll
2626DESTCOPY_64 = ../../output/dll
You can’t perform that action at this time.
0 commit comments