X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=bindings%2Ftcl%2FMakefile.am;h=d4ea2102f95024452c055adbaba03177c318ce60;hb=e9fb580fcf041573054e5bcf2184fa7811f9dd59;hp=22d661df0306d5651329184f9ec3bf405cae678a;hpb=2fb6588042f97f74e29ba12e8d33da66c9b202bb;p=rrdtool.git diff --git a/bindings/tcl/Makefile.am b/bindings/tcl/Makefile.am index 22d661d..d4ea210 100644 --- a/bindings/tcl/Makefile.am +++ b/bindings/tcl/Makefile.am @@ -20,7 +20,9 @@ AM_CPPFLAGS = -I$(TCL_PREFIX)/include -I$(SRC_DIR) -DUSE_TCL_STUBS LIBDIRS = -L$(top_builddir)/src/.libs -L$(top_builddir)/src -L$(libdir) LIB_RUNTIME_DIR = $(libdir) +if BUILD_TCL_SITE pkglibdir = @TCL_PACKAGE_DIR@ +endif # Automake doen't like `tclrrd$(VERSION)$(TCL_SHLIB_SUFFIX)' as # library name. So we build and install this library `by hand'. @@ -39,7 +41,7 @@ pkglib_DATA = pkgIndex.tcl pkglib_SCRIPTS = ifOctets.tcl $(TCL_RRD_LIB): tclrrd.o - $(TCL_SHLIB_LD) $(TCL_LD_SEARCH_FLAGS) $(LIBDIRS) $< -o $@ -lrrd_th -lm $(TCL_STUB_LIB_SPEC) $(LIBS) + $(TCL_SHLIB_LD) $(TCL_LD_SEARCH_FLAGS) $(LIBDIRS) $< -o $@ -lrrd_th -lm $(TCL_STUB_LIB_SPEC) $(LDFLAGS) $(LIBS) tclrrd.o: tclrrd.c $(CC) $(AM_CFLAGS) $(CFLAGS) $(TCL_SHLIB_CFLAGS) $(AM_CPPFLAGS) -c $< -DVERSION=\"$(VERSION)\"