Skip to content

Commit

Permalink
Fix install_name of plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandesign committed Jun 2, 2018
1 parent 0e09a22 commit 4d4eb1c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/darwintracelib1.0/Makefile.in
Expand Up @@ -41,6 +41,9 @@ INSTALLDIR = $(TCL_PACKAGE_PATH)/darwintrace1.0
CFLAGS_PEDANTIC =
CFLAGS += -fPIC $(UNIVERSAL_ARCHFLAGS)
SHLIB_LDFLAGS += $(UNIVERSAL_ARCHFLAGS)
ifeq ($(shell uname),Darwin)
SHLIB_LDFLAGS += -install_name $(INSTALLDIR)/$(SHLIB_NAME)
endif

# Generate dependency information
%.d : %.c
Expand Down
3 changes: 3 additions & 0 deletions src/machista1.0/Makefile.in
Expand Up @@ -20,6 +20,9 @@ TESTS = ./tests/libmachista-test
include $(srcdir)/../../Mk/macports.tea.mk

CFLAGS+= -fPIC
ifeq ($(shell uname),Darwin)
SHLIB_LDFLAGS+= -install_name ${INSTALLDIR}/${SHLIB_NAME}
endif

${SWIG_SRCS}:: ${SWIG_IFACE}
ifdef SWIG
Expand Down
4 changes: 4 additions & 0 deletions src/macports1.0/Makefile.in
Expand Up @@ -19,6 +19,10 @@ endif

pkgIndex.tcl: $(SRCS)

ifeq ($(shell uname),Darwin)
SHLIB_LDFLAGS+= -install_name ${INSTALLDIR}/${SHLIB_NAME}
endif

test::
$(TCLSH) $(srcdir)/../tests/test.tcl -nocolor

Expand Down
2 changes: 1 addition & 1 deletion src/pextlib1.0/Makefile.in
Expand Up @@ -55,7 +55,7 @@ CFLAGS+= ${CURL_CFLAGS} ${MD5_CFLAGS} ${READLINE_CFLAGS}
LIBS+= ${CURL_LIBS} ${MD5_LIBS} ${READLINE_LIBS}
ifeq ($(shell uname),Darwin)
LIBS+= ../registry2.0/registry${SHLIB_SUFFIX}
SHLIB_LDFLAGS+= -install_name ${TCL_PACKAGE_PATH}/pextlib1.0/${SHLIB_NAME}
SHLIB_LDFLAGS+= -install_name ${INSTALLDIR}/${SHLIB_NAME}
${SHLIB_NAME}: ../registry2.0/registry${SHLIB_SUFFIX}
endif

Expand Down

0 comments on commit 4d4eb1c

Please sign in to comment.