1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/databases/tcl-Mysql/files/Makefile.bsd
Mikhail Teterin 727e83b1a7 This library should always have been linked with c++, rather than
cc, but we were able to get away with it previously. Not any more.
Set CC to ${CXX} (something bsd.lib.mk should be doing for us!) to
avoid unresolved __gxx_personality_v0 when trying to load the package
into the Tcl interpreter at run-time.

No PORTREVISION bump, since the port did not build on -current until
5 minutes ago, and the problem does not affect -stable.

Not Approved by: portmgr (Linnex would too cruel and too unusual anyway)
2002-11-27 01:00:57 +00:00

17 lines
430 B
Makefile

TCL_VERSION?= tcl8.3
TCL_NODOT?= ${TCL_VERSION:S/.//}
SHLIB_NAME= libTclMySQL.so.1
CC = ${CXX} # a hack to force linking with c++
SRCS = sql-mysql.cc sql.cc sql-manager.cc
CXXFLAGS+= -I${LOCALBASE}/include/${TCL_VERSION}
CXXFLAGS+= -I${LOCALBASE}/include/mysql
LDADD += -L${LOCALBASE}/lib -l${TCL_NODOT}
LDADD += -L${LOCALBASE}/lib/mysql -lmysqlclient
LDADD += -lgcc
printname:
@echo -n ${SHLIB_NAME}
.include <bsd.lib.mk>