Lines 115-120
Link Here
|
115 |
$libs .= "-L$sqlite_lib " if ($sqlite_lib); |
115 |
$libs .= "-L$sqlite_lib " if ($sqlite_lib); |
116 |
$libs .= "-lsqlite3 " unless ($force_local); |
116 |
$libs .= "-lsqlite3 " unless ($force_local); |
117 |
|
117 |
|
|
|
118 |
my $myLDFLAGS = $ENV{LDFLAGS}; |
119 |
my $LDDLFLAGS= join ' ', $Config{lddlflags},$myLDFLAGS; |
120 |
|
118 |
WriteMakefile( |
121 |
WriteMakefile( |
119 |
'NAME' => 'DBD::SQLite', |
122 |
'NAME' => 'DBD::SQLite', |
120 |
'VERSION_FROM' => 'lib/DBD/SQLite.pm', # finds $VERSION |
123 |
'VERSION_FROM' => 'lib/DBD/SQLite.pm', # finds $VERSION |
Lines 124-129
Link Here
|
124 |
(($sqlite_inc) ? " -I$sqlite_inc" : ''), |
127 |
(($sqlite_inc) ? " -I$sqlite_inc" : ''), |
125 |
$libs ? ('LIBS' => $libs) : (), |
128 |
$libs ? ('LIBS' => $libs) : (), |
126 |
'OPTIMIZE' => "-O2", |
129 |
'OPTIMIZE' => "-O2", |
|
|
130 |
'LDDLFLAGS' => $LDDLFLAGS, |
127 |
'DEFINE' => "-DSQLITE_CORE -DSQLITE_ENABLE_FTS2 -DNDEBUG=1 -DSQLITE_PTR_SZ=$Config{ptrsize}" . |
131 |
'DEFINE' => "-DSQLITE_CORE -DSQLITE_ENABLE_FTS2 -DNDEBUG=1 -DSQLITE_PTR_SZ=$Config{ptrsize}" . |
128 |
( ($Config{d_usleep} || |
132 |
( ($Config{d_usleep} || |
129 |
$Config{osname} =~ m/linux/) ? |
133 |
$Config{osname} =~ m/linux/) ? |