Browse Source

Use INSTALL_NAME_TOOL and OTOOL environment variables in plugin makefile on Mac.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
1f6da03a52
2 changed files with 5 additions and 3 deletions
  1. +2
    -0
      compile.mk
  2. +3
    -3
      plugin.mk

+ 2
- 0
compile.mk View File

@@ -6,6 +6,8 @@ include $(RACK_DIR)/arch.mk

OBJCOPY ?= objcopy
STRIP ?= strip
INSTALL_NAME_TOOL ?= install_name_tool
OTOOL ?= otool

# Generate dependency files alongside the object files
FLAGS += -MMD -MP


+ 3
- 3
plugin.mk View File

@@ -67,9 +67,9 @@ dist: all
cp $(TARGET) dist/$(SLUG)/
ifdef ARCH_MAC
$(STRIP) -S dist/$(SLUG)/$(TARGET)
install_name_tool -change libRack.dylib @rpath/libRack.dylib dist/$(SLUG)/$(TARGET)
install_name_tool -add_rpath . dist/$(SLUG)/$(TARGET)
otool -L dist/$(SLUG)/$(TARGET)
$(INSTALL_NAME_TOOL) -change libRack.dylib @rpath/libRack.dylib dist/$(SLUG)/$(TARGET)
$(INSTALL_NAME_TOOL) -add_rpath . dist/$(SLUG)/$(TARGET)
$(OTOOL) -L dist/$(SLUG)/$(TARGET)
else
$(STRIP) -s dist/$(SLUG)/$(TARGET)
endif


Loading…
Cancel
Save