# TCL binding module setup for Solaris, not for upstream
--- rrdtool-1.6.0/bindings/tcl/Makefile.in 2016-04-19 07:53:14.000000000 -0700
+++ rrdtool-1.6.0/bindings/tcl/Makefile.in 2016-05-26 14:43:11.361008215 -0700
@@ -360,7 +360,7 @@
AM_CFLAGS = @CFLAGS@
SRC_DIR = $(top_srcdir)/src
AM_CPPFLAGS = $(TCL_INCLUDE_SPEC) -I$(top_builddir)/src -I$(SRC_DIR) -DUSE_TCL_STUBS
-LIBDIRS = -L$(top_builddir)/src/.libs -L$(top_builddir)/src -L$(libdir)
+LIBDIRS = -L$(top_builddir)/src/.libs -L$(top_builddir)/src
LIB_RUNTIME_DIR = $(libdir)
@BUILD_TCL_SITE_TRUE@tclpkgdir = @TCL_PACKAGE_DIR@
@BUILD_TCL_SITE_TRUE@tclpkg_DATA = pkgIndex.tcl
@@ -730,10 +730,10 @@
all-local: $(TCL_RRD_LIB)
$(TCL_RRD_LIB): tclrrd.o
- $(TCL_SHLIB_LD) $(TCL_LD_SEARCH_FLAGS) $(LIBDIRS) $< -o $@ -lrrd -lm $(TCL_STUB_LIB_SPEC) $(LDFLAGS) $(LIBS)
+ $(CC) -G $(LIBDIRS) $< -o $@ -lrrd -lm $(TCL_STUB_LIB_SPEC)
tclrrd.o: tclrrd.c
- $(CC) $(AM_CFLAGS) $(CFLAGS) $(TCL_SHLIB_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -c $(srcdir)/tclrrd.c -DVERSION=\"$(VERSION)\"
+ $(CC) $(AM_CFLAGS) $(CFLAGS) $(TCL_SHLIB_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -c tclrrd.c -DVERSION=\"$(VERSION)\"
pkgIndex.tcl:
echo "package ifneeded Rrd $(VERSION) \"load $(libdir)/tclrrd$(VERSION)[info sharedlibextension]\"" > $@