build: add -s flag to release builds

- Add symbol stripping (-s) to release builds
This commit is contained in:
2026-01-31 21:55:40 +01:00
parent 49ae5ed75e
commit 22c7da4336
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ ${BIN_DIR}/debug/${FULL_LIB}: ${OBJS_DEBUG}
${BIN_DIR}/release/${FULL_LIB}: ${OBJS_RELEASE}
@mkdir -p ${.TARGET:H}
${CC} -shared -o ${.TARGET} ${.ALLSRC} ${LDFLAGS_PLAT}
${CC} -shared -s -o ${.TARGET} ${.ALLSRC} ${LDFLAGS_PLAT}
.for _src in ${SRCS}
_obj_base = ${_src:S/^src\///:S/.c$/.o/}