Skip to content
/ sox Public
forked from mansr/sox

SoX, Swiss Army knife of sound processing

License

Unknown and 2 other licenses found

Licenses found

Unknown
COPYING
GPL-2.0
LICENSE.GPL
LGPL-2.1
LICENSE.LGPL
Notifications You must be signed in to change notification settings

simonefil/sox

 
 
HOW TO CREATE A STATIC LINKED BINARY ON MACOS?

In theory this should not be possible like explained here: https://developer.apple.com/library/archive/qa/qa1118/_index.html

In practice there's a workaround:

1- Copy all static dependencies libs (*.a files in /usr/local/lib) to a folder like "/staticlibs"
2- Hide shared libs:
	python ./hide-shared-libs.py -d /usr/local --hide
3- Compile SoX :

autoreconf -i
./configure LDFLAGS='-L/staticlibs' --enable-static --disable-shared --with-distro='macOS 10.14 Mojave'
make

4- Restore shared libs:
	pyhton ./hide-shared-libs.py -d /usr/local --restore
5- Profit!


Credits: Thanks todd for the python script: https://dropline.net/2015/10/static-linking-on-mac-os-x/


About

SoX, Swiss Army knife of sound processing

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
COPYING
GPL-2.0
LICENSE.GPL
LGPL-2.1
LICENSE.LGPL

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 87.1%
  • Roff 7.8%
  • Shell 2.4%
  • M4 1.2%
  • Makefile 0.5%
  • C++ 0.4%
  • Other 0.6%