From 3b274edd2ea16f054ece3f831f882cc1839e688a Mon Sep 17 00:00:00 2001 From: TaurusXin Date: Thu, 21 Mar 2024 14:12:20 +0800 Subject: [PATCH] feat: staticlly link libc --- .github/workflows/autobuild.yml | 3 +++ CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 60ac399..ac7e806 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -28,6 +28,9 @@ jobs: - name: Build run: cmake --build ${{ env.BUILD_PATH }} -j 4 + + - name: Strip + run: strip ${{ env.BUILD_PATH }}/ncmdump.exe - name: Upload artifact uses: actions/upload-artifact@v4 diff --git a/CMakeLists.txt b/CMakeLists.txt index 066b033..79cd316 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ target_include_directories(ncmdump PRIVATE taglib/taglib/mpeg/id3v2) if(WIN32) if(CMAKE_COMPILER_IS_GNUCXX) - target_link_options(ncmdump PRIVATE -municode) + target_link_options(ncmdump PRIVATE -municode -static) endif() endif()