Skip to content

Instantly share code, notes, and snippets.

@Sean-Der
Created April 4, 2023 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sean-Der/14b7ec03bd4580bf3c10492c2b4c6ac1 to your computer and use it in GitHub Desktop.
Save Sean-Der/14b7ec03bd4580bf3c10492c2b4c6ac1 to your computer and use it in GitHub Desktop.
flags
-DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -w -pipe -fno-semantic-interposition -static"
-DCMAKE_C_FLAGS="-static-libgcc -w -pipe -fno-semantic-interposition -static"
-DCMAKE_SHARED_LINKER_FLAGS="-static-libgcc -static-libstdc++ -L${target_config[output_dir]}/lib -Wl,--exclude-libs,ALL -static"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment