https://github.com/kbinani/catlib
https://github.com/kbinani/catlib
golang linker macos visual-studio
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kbinani/catlib
- Owner: kbinani
- License: mit
- Created: 2016-10-25T06:53:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-09T06:23:17.000Z (over 9 years ago)
- Last Synced: 2025-10-08T04:56:19.008Z (8 months ago)
- Topics: golang, linker, macos, visual-studio
- Language: Go
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
catlib
======
A command line tool to concatenate static libraries into single file. This tool is intended to be used as a workaround in case you get `LNK1189: the limit of 65535 objects or members in a library has been exceeded.` when trying same job with `lib` command.
requirements
============
* go
* Visual Studio (Windows)
* Xcode (macOS)
install
=======
```
go get github.com/kbinani/catlib/cmd/catlib
go install github.com/kbinani/catlib/cmd/catlib
```
usage
=====
```
Usage of catlib:
--arch string
x86_64 or i386 (macOS only) (default "x86_64")
--base string
file path of base static library
--delete-default-lib
delete '-defaultlib:"libfoo"' from '.drectve' section when libfoo.lib is in '--input' (Windows only) (default true)
--extra-lib-flags string
extra 'lib' command options for final concatenation stage
--input string
comma separated list of file path of import libs
--output string
file path of output library
Example:
catlib --base=myproject.lib ^
--input=zlibstat.lib,libprotobuf.lib ^
--output=myproject-prelinked.lib ^
--delete-default-lib ^
--extra-lib-flags="/LTCG /WX"
```
license
=======
MIT