summaryrefslogtreecommitdiff
path: root/databases/tcl-fbsql/files/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/tcl-fbsql/files/Makefile')
-rw-r--r--databases/tcl-fbsql/files/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/databases/tcl-fbsql/files/Makefile b/databases/tcl-fbsql/files/Makefile
index 0cfe1e287ef..989ed63316d 100644
--- a/databases/tcl-fbsql/files/Makefile
+++ b/databases/tcl-fbsql/files/Makefile
@@ -5,14 +5,14 @@ PIC = -fPIC
INCLUDES = -I${PREFIX}/include/tcl -I$(MYSQLINCDIR)
CFLAGS += -Wall $(PIC) $(INCLUDES)
-LDFLAGS = -lz $(MYSQLLIBDIR)/libmysqlclient.la
+LDFLAGS = -lz $(MYSQLLIBDIR)/libmysqlclient.la -L$(PREFIX)/lib -ltcl
-all: fbsql.so
+all: fbsql.la
fbsql.lo: fbsql.c
$(LIBTOOL) --mode=compile ${CC} ${CFLAGS} -c fbsql.c
-fbsql.so: fbsql.lo
- $(LIBTOOL) --mode=link ${CC} -shared -o $@ fbsql.lo $(LDFLAGS)
+fbsql.la: fbsql.lo
+ $(LIBTOOL) --mode=link ${CC} -module -rpath ${PREFIX}/lib/tcl -o fbsql.la fbsql.lo $(LDFLAGS)
clean:
-rm -f core *.o fbsql.so