view src/libodbc++-1-libtool.patch @ 3293:cf6f40cededb

Support file list generation in packages. For the following modules: - arpack - blas - build-autoconf - build-automake - build-cmake - build-gperf - build-libtool - build-msvctools - build-pkg-config - build-texinfo - bzip2 - curl - dbus - expat - fftw - fltk - fontconfig - freetype - gettext - glpk - gmp - gnuplot - gnutls - graphicsmagick - hdf5 - jasper - jpeg - lapack - lcms - libgcrypt - libgpg_error - libiconv - libidn - libpng - libssh2 - libxml2 - ncurses - nettle - openssl - pcre - pstoedit - zlib - qhull - qrupdate - qscintilla - qt - readline - suitesparse - texinfo - tiff
author Michael Goffioul <michael.goffioul@gmail.com>
date Sat, 09 Nov 2013 23:28:04 -0500
parents 6e44b2527dbb
children
line wrap: on
line source

diff -uNr a/configure.ac b/configure.ac
--- a/configure.ac	2009-08-20 17:39:08.000000000 -0400
+++ b/configure.ac	2012-12-18 17:19:30.901179636 -0500
@@ -53,10 +53,11 @@
 AC_PROG_CXX
 AC_PROG_CXXCPP
 AC_LANG_C
-AM_PROG_LIBTOOL
 AC_C_LONG_LONG
 AC_LANG_CPLUSPLUS
 
+LT_INIT([win32-dll])
+
 AC_PROG_INSTALL
 
 if test "x$GXX" = "xyes"
diff -uNr a/src/Makefile.am b/src/Makefile.am
--- a/src/Makefile.am	2005-08-25 09:52:07.000000000 -0400
+++ b/src/Makefile.am	2012-12-18 17:48:24.265430637 -0500
@@ -37,7 +37,7 @@
 datahandler.h \
 driverinfo.h
 
-ldflags=-version-info @lib_version@
+ldflags=-no-undefined -version-info @lib_version@
 
 # confusing conditionals follow
 
@@ -77,6 +77,7 @@
 
 libodbc___la_SOURCES=$(sources)
 libodbc___la_LDFLAGS=$(ldflags)
+libodbc___la_LIBADD=-lodbc32
 
 libodbc___qt_la_SOURCES=$(sources)
 libodbc___qt_la_LDFLAGS=$(ldflags)