From 474e7c096572a27abc6d79c07f9a213be50b3545 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 7 May 2020 14:48:22 +0900 Subject: [PATCH] make: osx uses install_name instead of soname ... --- README.md | 4 ++-- build-osx.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 build-osx.sh diff --git a/README.md b/README.md index 4243cfe..50e6b87 100644 --- a/README.md +++ b/README.md @@ -50,9 +50,9 @@ brew install make pkg-config # You may need to setup your pkg-config to point to the brew version of the libraries # For example to build curses backend, you'd do: -PKG_CONFIG_PATH="/usr/local/opt/ncurses/lib/pkgconfig" gmake curses +PKG_CONFIG_PATH="/usr/local/opt/ncurses/lib/pkgconfig" sh build-osx.sh curses -# Other than that, follow the normal build steps, but use gmake instead of make +# Other than that, follow the normal build steps, but use `build-osx.sh` instead of make ``` ## Dependencies diff --git a/build-osx.sh b/build-osx.sh new file mode 100644 index 0000000..4f10ed8 --- /dev/null +++ b/build-osx.sh @@ -0,0 +1,3 @@ +#!/bin/sh +sed 's/-soname/-install_name/' GNUmakefile > GNUmakefile.osx +gmake -f GNUmakefile.osx "$@"