Skip to content

Commit 9caef88

Browse files
committed
enable stripping for a bunch of self-built dlls
1 parent acb14cf commit 9caef88

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

ExternalProjects/SDL2/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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)

LibretroBridge/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CXX = g++
22

33
CFLAGS = -Wall -Wextra -Wpedantic -std=c++11 -O3 -fPIC -fvisibility=hidden -fomit-frame-pointer -fno-exceptions
4-
LFLAGS = -shared
4+
LFLAGS = -shared -s
55

66
SRCS = LibretroBridge.cpp
77

blip_buf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CC = gcc
22

33
CFLAGS = -Wall -Wextra -O3
4-
LFLAGS = -shared
4+
LFLAGS = -shared -s
55

66
all: blip_buf
77

encore/build_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ rm -rf build
1515
mkdir build
1616
cd build
1717
cmake ../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
1919
ninja

lynx/make/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TARGET = bizlynx.dll
1616

1717
LDFLAGS_32 = -static -static-libgcc -static-libstdc++
1818
LDFLAGS_64 =
19-
LDFLAGS = -shared $(LDFLAGS_$(ARCH)) $(CXXFLAGS)
19+
LDFLAGS = -shared $(LDFLAGS_$(ARCH)) $(CXXFLAGS) -s
2020

2121
DEST_64 = ../../Assets/dll
2222
DESTCOPY_64 = ../../output/dll

wonderswan/make/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ endif
2020

2121
LDFLAGS_32 = -static -static-libgcc -static-libstdc++
2222
LDFLAGS_64 =
23-
LDFLAGS = -shared $(LDFLAGS_$(ARCH)) $(CXXFLAGS)
23+
LDFLAGS = -shared $(LDFLAGS_$(ARCH)) $(CXXFLAGS) -s
2424

2525
DEST_64 = ../../Assets/dll
2626
DESTCOPY_64 = ../../output/dll

0 commit comments

Comments
 (0)