mirror of
https://github.com/hanzoai/pymssql.git
synced 2026-10-30 14:54:29 +00:00
FreeTDS Configuration
---------------------
export CC="gcc -fPIC"
./configure --disable-odbc --disable-apps --disable-server
--disable-pool --with-tdsver=7.1 --prefix=/some/tmp/prefix
I had to force the -fPIC option to GCC in order to be able to link
libsybdb.a. Before doing that, I was getting an error like the
one described here:
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3
From that article:
In this case, globally adding -fPIC to C[XX]FLAGS resolves the
issue, although this practice is discouraged because the
executables end up being PIC-enabled, too.
Since we are doing a special build and only need the library, not the
applications, it seems like a safe bet.
57 lines
1.9 KiB
C
57 lines
1.9 KiB
C
/* FreeTDS - Library of routines accessing Sybase and Microsoft databases
|
|
* Copyright (C) 1998-1999 Brian Bruns
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef SQLFRONT_h
|
|
#define SQLFRONT_h
|
|
|
|
#include "./sybfront.h"
|
|
|
|
static const char rcsid_sqlfront_h[] = "$Id: sqlfront.h,v 1.6.2.3 2011/07/14 12:17:55 freddy77 Exp $";
|
|
static const void *const no_unused_sqlfront_h_warn[] = { rcsid_sqlfront_h, no_unused_sqlfront_h_warn };
|
|
|
|
typedef DBPROCESS * PDBPROCESS;
|
|
typedef LOGINREC * PLOGINREC;
|
|
typedef DBCURSOR * PDBCURSOR;
|
|
|
|
typedef int * LPINT;
|
|
typedef char * LPSTR;
|
|
#if !defined(PHP_MSSQL_H) || !defined(PHP_MSSQL_API)
|
|
typedef BYTE * LPBYTE;
|
|
#endif
|
|
typedef void * LPVOID;
|
|
typedef const char * LPCSTR;
|
|
|
|
typedef const LPINT LPCINT;
|
|
#ifndef _LPCBYTE_DEFINED
|
|
#define _LPCBYTE_DEFINED
|
|
typedef const BYTE * LPCBYTE;
|
|
#endif
|
|
typedef USHORT * LPUSHORT;
|
|
typedef const LPUSHORT LPCUSHORT;
|
|
typedef DBINT * LPDBINT;
|
|
typedef const LPDBINT LPCDBINT;
|
|
typedef DBBINARY * LPDBBINARY;
|
|
typedef const LPDBBINARY LPCDBBINARY;
|
|
typedef DBDATEREC * LPDBDATEREC;
|
|
typedef const LPDBDATEREC LPCDBDATEREC;
|
|
typedef DBDATETIME * LPDBDATETIME;
|
|
typedef const LPDBDATETIME LPCDBDATETIME;
|
|
|
|
#endif
|