1 Index: sqlite-3.2.1/Makefile.in
2 ===================================================================
3 --- sqlite-3.2.1.orig/Makefile.in 2005-04-25 23:12:10.000000000 +0200
4 +++ sqlite-3.2.1/Makefile.in 2005-04-25 23:17:39.000000000 +0200
7 TCC = @TARGET_CC@ @TARGET_CFLAGS@ -I. -I${TOP}/src
11 +TARGET_LFLAGS = @TARGET_LFLAGS@
13 # Define -DNDEBUG to compile without debugging (i.e., for production usage)
14 # Omitting the define will cause extra debugging code to be inserted and
15 # includes extra comments when "EXPLAIN stmt" is used.
17 | awk '{print $$5,$$6}' >last_change
19 libsqlite3.la: $(LIBOBJ)
20 - $(LTLINK) -o libsqlite3.la $(LIBOBJ) $(LIBPTHREAD) \
21 + $(LTLINK) -o libsqlite3.la $(LIBOBJ) $(TARGET_LFLAGS) $(LIBPTHREAD) \
22 ${ALLOWRELEASE} -rpath $(libdir) -version-info "8:6:8"
24 libtclsqlite3.la: tclsqlite.lo libsqlite3.la
25 $(LTLINK) -o libtclsqlite3.la tclsqlite.lo \
26 - $(LIBOBJ) @TCL_STUB_LIB_SPEC@ $(LIBPTHREAD) \
27 + $(LIBOBJ) @TCL_STUB_LIB_SPEC@ $(TARGET_LFLAGS) $(LIBPTHREAD) \
28 -rpath $(libdir)/sqlite \
31 sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h
32 - $(LTLINK) $(READLINE_FLAGS) $(LIBPTHREAD) \
33 + $(LTLINK) $(TARGET_LFLAGS) $(READLINE_FLAGS) $(LIBPTHREAD) \
34 -o sqlite3 $(TOP)/src/shell.c libsqlite3.la $(LIBREADLINE)
36 # This target creates a directory named "tsrc" and fills it with
39 tclsqlite3: tclsqlite-shell.lo libsqlite3.la
40 $(LTLINK) -o tclsqlite3 tclsqlite-shell.lo \
41 - libsqlite3.la $(LIBTCL)
42 + libsqlite3.la $(TARGET_LFLAGS) $(LIBTCL)
44 testfixture$(TEXE): $(TOP)/src/tclsqlite.c libtclsqlite3.la libsqlite3.la $(TESTSRC)
45 $(LTLINK) -DTCLSH=1 -DSQLITE_TEST=1\
46 $(THREADSAFE) $(TEMP_STORE)\
47 -o testfixture $(TESTSRC) $(TOP)/src/tclsqlite.c \
48 - libtclsqlite3.la $(LIBTCL)
49 + libtclsqlite3.la $(TARGET_LFLAGS) $(LIBTCL)
51 crashtest$(TEXE): $(TOP)/src/tclsqlite.c libsqlite3.la $(TESTSRC) $(TOP)/src/os_test.c
52 $(LTLINK) -DOS_TEST=1 -DTCLSH=1 -DSQLITE_TEST=1 \
54 $(TESTSRC) $(TOP)/src/os_test.c $(TOP)/src/tclsqlite.c \
55 - libsqlite3.la $(LIBTCL) $(THREADLIB)
56 + libsqlite3.la $(TARGET_LFLAGS) $(LIBTCL) $(THREADLIB)
60 Index: sqlite-3.2.1/configure.ac
61 ===================================================================
62 --- sqlite-3.2.1.orig/configure.ac 2005-04-25 23:12:10.000000000 +0200
63 +++ sqlite-3.2.1/configure.ac 2005-04-25 23:12:46.000000000 +0200
65 TARGET_LINK=$config_TARGET_LINK
67 AC_MSG_RESULT($TARGET_LINK)
68 +AC_MSG_CHECKING([switches on the target linker])
69 +if test "$config_TARGET_LFLAGS" != ""; then
70 + TARGET_LFLAGS=$config_TARGET_LFLAGS
72 + TARGET_LFLAGS=$BUILD_LFLAGS
74 +AC_MSG_RESULT($TARGET_LFLAGS)
75 AC_MSG_CHECKING([switches on the target compiler])
76 if test "$config_TARGET_TFLAGS" != ""; then
77 TARGET_TFLAGS=$config_TARGET_TFLAGS