diff options
Diffstat (limited to 'meta-extras/packages/sqlite/sqlite3-3.3.7/ldflags.patch')
-rw-r--r-- | meta-extras/packages/sqlite/sqlite3-3.3.7/ldflags.patch | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/meta-extras/packages/sqlite/sqlite3-3.3.7/ldflags.patch b/meta-extras/packages/sqlite/sqlite3-3.3.7/ldflags.patch new file mode 100644 index 0000000000..ee5105ffff --- /dev/null +++ b/meta-extras/packages/sqlite/sqlite3-3.3.7/ldflags.patch | |||
@@ -0,0 +1,67 @@ | |||
1 | --- sqlite-3.3.7/Makefile.in.orig 2006-08-20 23:05:36.000000000 +0200 | ||
2 | +++ sqlite-3.3.7/Makefile.in 2006-08-20 23:42:49.000000000 +0200 | ||
3 | @@ -31,6 +31,10 @@ | ||
4 | # | ||
5 | TCC = @TARGET_CC@ @TARGET_CFLAGS@ -I. -I${TOP}/src | ||
6 | |||
7 | +# OE overrides | ||
8 | +# | ||
9 | +TARGET_LFLAGS = @TARGET_LFLAGS@ | ||
10 | + | ||
11 | # Define -DNDEBUG to compile without debugging (i.e., for production usage) | ||
12 | # Omitting the define will cause extra debugging code to be inserted and | ||
13 | # includes extra comments when "EXPLAIN stmt" is used. | ||
14 | @@ -257,17 +261,17 @@ | ||
15 | | $(NAWK) '{print $$5,$$6}' >last_change | ||
16 | |||
17 | libsqlite3.la: $(LIBOBJ) | ||
18 | - $(LTLINK) -o libsqlite3.la $(LIBOBJ) $(LIBPTHREAD) \ | ||
19 | + $(LTLINK) -o libsqlite3.la $(LIBOBJ) $(TARGET_LFLAGS) $(LIBPTHREAD) \ | ||
20 | ${ALLOWRELEASE} -rpath $(libdir) -version-info "8:6:8" | ||
21 | |||
22 | libtclsqlite3.la: tclsqlite.lo libsqlite3.la | ||
23 | $(LTLINK) -o libtclsqlite3.la tclsqlite.lo \ | ||
24 | - $(LIBOBJ) @TCL_STUB_LIB_SPEC@ $(LIBPTHREAD) \ | ||
25 | + $(LIBOBJ) @TCL_STUB_LIB_SPEC@ $(TARGET_LFLAGS) $(LIBPTHREAD) \ | ||
26 | -rpath $(libdir)/sqlite \ | ||
27 | -version-info "8:6:8" | ||
28 | |||
29 | sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h | ||
30 | - $(LTLINK) $(READLINE_FLAGS) $(LIBPTHREAD) \ | ||
31 | + $(LTLINK) $(TARGET_LFLAGS) $(READLINE_FLAGS) $(LIBPTHREAD) \ | ||
32 | -o $@ $(TOP)/src/shell.c libsqlite3.la \ | ||
33 | $(LIBREADLINE) $(TLIBS) | ||
34 | |||
35 | @@ -456,12 +460,12 @@ | ||
36 | |||
37 | tclsqlite3: tclsqlite-shell.lo libsqlite3.la | ||
38 | $(LTLINK) -o tclsqlite3 tclsqlite-shell.lo \ | ||
39 | - libsqlite3.la $(LIBTCL) | ||
40 | + libsqlite3.la $(TARGET_LFLAGS) $(LIBTCL) | ||
41 | |||
42 | testfixture$(TEXE): $(TOP)/src/tclsqlite.c libsqlite3.la $(TESTSRC) | ||
43 | $(LTLINK) -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 \ | ||
44 | $(TEMP_STORE) -o testfixture $(TESTSRC) $(TOP)/src/tclsqlite.c \ | ||
45 | - libsqlite3.la $(LIBTCL) | ||
46 | + libsqlite3.la $(TARGET_LFLAGS) $(LIBTCL) | ||
47 | |||
48 | |||
49 | fulltest: testfixture$(TEXE) sqlite3$(TEXE) | ||
50 | @@ -471,7 +475,7 @@ | ||
51 | ./testfixture $(TOP)/test/quick.test | ||
52 | |||
53 | sqlite3_analyzer$(TEXE): $(TOP)/src/tclsqlite.c libtclsqlite3.la \ | ||
54 | - $(TESTSRC) $(TOP)/tool/spaceanal.tcl | ||
55 | + $(TARGET_LFLAGS) $(TESTSRC) $(TOP)/tool/spaceanal.tcl | ||
56 | sed \ | ||
57 | -e '/^#/d' \ | ||
58 | -e 's,\\,\\\\,g' \ | ||
59 | @@ -481,7 +485,7 @@ | ||
60 | $(TOP)/tool/spaceanal.tcl >spaceanal_tcl.h | ||
61 | $(LTLINK) -DTCLSH=2 -DSQLITE_TEST=1 $(TEMP_STORE)\ | ||
62 | -o sqlite3_analyzer$(EXE) $(TESTSRC) $(TOP)/src/tclsqlite.c \ | ||
63 | - libtclsqlite3.la $(LIBTCL) | ||
64 | + libtclsqlite3.la $(TARGET_LFLAGS) $(LIBTCL) | ||
65 | |||
66 | # Rules used to build documentation | ||
67 | # | ||