Skip to content

Commit

Permalink
Merge pull request #217 from facebook/handle-install-name
Browse files Browse the repository at this point in the history
Expose LD_DYLIB_INSTALL_NAME setting for `make`
  • Loading branch information
kastiglione authored Jan 4, 2018
2 parents c477a65 + de59f18 commit 8525cbd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Chisel/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
PREFIX ?= /usr/local/lib

export INSTALL_NAME = ""
ifneq ($(LD_DYLIB_INSTALL_NAME), "")
INSTALL_NAME = "LD_DYLIB_INSTALL_NAME=$(LD_DYLIB_INSTALL_NAME)"
endif

install:
xcodebuild \
-scheme Chisel \
-configuration Release \
-sdk iphonesimulator \
install \
$(INSTALL_NAME) \
DSTROOT=/ \
INSTALL_PATH="$(PREFIX)"

0 comments on commit 8525cbd

Please sign in to comment.