blob: d3d241a57127d9a50cf612782e148a9ebfbe99b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$NetBSD: patch-Makefile.in,v 1.2 2017/04/16 20:27:09 khorben Exp $
* Honour LDFLAGS for bl3.
* Avoid a warning while generating config.h.
--- Makefile.in.orig 2005-04-23 22:43:23.000000000 +0000
+++ Makefile.in
@@ -38,7 +38,7 @@ RELEASE = @ALLOWRELEASE@
# libtool compile/link/install
LTCOMPILE = $(LIBTOOL) --mode=compile $(TCC)
-LTLINK = $(LIBTOOL) --mode=link $(TCC)
+LTLINK = $(LIBTOOL) --mode=link $(TCC) $(LDFLAGS)
LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
# Compiler options needed for programs that use the TCL library.
@@ -268,7 +268,8 @@ parse.c: $(TOP)/src/parse.y lemon@BUILD_
# configure the config.h file.
#
config.h:
- echo '#include <stdio.h>' >temp.c
+ echo '#include <stdlib.h>' >temp.c
+ echo '#include <stdio.h>' >>temp.c
echo 'int main(){printf(' >>temp.c
echo '"#define SQLITE_PTR_SZ %d",sizeof(char*));' >>temp.c
echo 'exit(0);}' >>temp.c
|