summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d655200)
raw | patch | inline | side by side (parent: d655200)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 18 May 2005 20:20:55 +0000 (20:20 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 18 May 2005 20:20:55 +0000 (20:20 +0000) |
program/bindings/tcl/Makefile.am | patch | blob | history | |
program/bindings/tcl/tclrrd.c | patch | blob | history |
index 872890ea4bd67e598818a512f0e19fcbad946611..9606d6ddfb0047f6f6bd75a645533f3119259869 100644 (file)
SRC_DIR = $(top_srcdir)/src
AM_CPPFLAGS = -I$(TCL_PREFIX)/include -I$(SRC_DIR) -I$(GD_LIB_DIR)
-LIBDIRS = -L$(libdir) -L$(SRC_DIR) -L../src/.libs
+LIBDIRS = -L$(libdir) -L$(SRC_DIR) -L../../src/.libs
LIB_RUNTIME_DIR = $(libdir)
if BUILD_TCL
tclrrd$(TCL_SHLIB_SUFFIX): tclrrd.o
- $(TCL_SHLIB_LD) $(LIBDIRS) $< -o $@ -lrrd_private -lm
+ $(TCL_SHLIB_LD) $(LIBDIRS) $< -o $@ -lrrd
tclrrd.o: tclrrd.c
- $(CC) $(CFLAGS) $(TCL_SHLIB_CFLAGS) $(INCLUDES) -c $< -DVERSION=\"$(VERSION)\"
+ $(CC) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $(TCL_SHLIB_CFLAGS) $(INCLUDES) -c $< -DVERSION=\"$(VERSION)\"
all-local: tclrrd$(TCL_SHLIB_SUFFIX)
index 3cc171151ff22acdf7d7fb14702358e7ad9841a0..92616de259cf85036f4d04906bcc59e71f93ba51 100644 (file)
/*
* some rrd_XXX() functions might modify the argv strings passed to it.
- * Furthermore, they use getopt() without initializing getopt's optind
- * variable themselves. Hence, we need to do some preparation before
+ * Hence, we need to do some preparation before
* calling the rrd library functions.
*/
static char ** getopt_init(argc, argv)
char **argv2;
int i;
- optind = 0;
-
argv2 = calloc(argc, sizeof(char *));
for (i = 0; i < argc; i++) {
argv2[i] = strdup(argv[i]);