summaryrefslogtreecommitdiff
path: root/lang/lua/patches/patch-aa
blob: 6afb86aceadbbcf521284d331e5d7dc72116a4d0 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
$NetBSD: patch-aa,v 1.8 2004/10/02 20:54:59 cube Exp $

--- config.orig	2003-04-11 16:00:41.000000000 +0200
+++ config
@@ -6,7 +6,7 @@
 LOADLIB=
 DLLIB=
 NUMBER=
-POPEN=
+POPEN= -DUSE_POPEN=1
 TMPNAM=
 DEGREES=
 USERCONF=
@@ -25,7 +25,7 @@ USERCONF=
 # interface (e.g., Linux, Solaris, IRIX, BSD, AIX, HPUX, and probably others),
 # uncomment the next two lines.
 #
-#LOADLIB= -DUSE_DLOPEN=1
+LOADLIB= -DUSE_DLOPEN=1
 #DLLIB= -ldl
 #
 # In Linux with gcc, you should also uncomment the next definition for
@@ -83,7 +83,7 @@ USERCONF=
 # For partial compatibility with old upvalue behavior in C functions, define
 # LUA_COMPATUPVALUES. Add these definitions to MYCFLAGS.
 #
-# -DLUA_COMPATUPSYNTAX -DLUA_COMPATUPVALUES
+# EXTRA_DEFS=-DLUA_COMPATUPSYNTAX -DLUA_COMPATUPVALUES
 
 # ------------------------------------------------------------- Lua interpreter
 
@@ -108,8 +108,8 @@ EXTRA_LIBS= -lm
 # You need an ANSI C compiler. gcc is a popular one. We do not use -ansi in
 # WARN because it disables POSIX features used in the libraries.
 #
-CC= gcc
-WARN= -Wall
+# CC= gcc
+# WARN= -Wall
 
 # ------------------------------------------------------------------ C options
 
@@ -119,11 +119,11 @@ WARN= -Wall
 # debug information. If you only want the shared libraries, you may want to
 # add -fPIC to MYCFLAGS.
 #
-MYCFLAGS= -O2
+MYCFLAGS:= $(CFLAGS)
 #MYCFLAGS= -O3 -fomit-frame-pointer # -fPIC
 
 # Write here any options you may need for your C linker.
-#MYLDFLAGS=
+MYLDFLAGS= $(LDFLAGS) $(LIBS) # -Wl,-E
 
 # ------------------------------------------------------------------ librarian
 
@@ -134,7 +134,7 @@ AR= ar rcu
 # If your system doesn't have (or need) ranlib, use RANLIB=true.
 # On some systems, "ar s" does what ranlib would do.
 #
-RANLIB= ranlib
+# RANLIB= ranlib
 #RANLIB= ar s
 #RANLIB= true
 
@@ -148,7 +148,7 @@ STRIP= strip
 
 # Locations for "make install". You may need to be root do "make install".
 #
-INSTALL_ROOT= /usr/local
+INSTALL_ROOT= $(PREFIX)
 INSTALL_BIN= $(INSTALL_ROOT)/bin
 INSTALL_INC= $(INSTALL_ROOT)/include
 INSTALL_LIB= $(INSTALL_ROOT)/lib
@@ -157,8 +157,8 @@ INSTALL_MAN= $(INSTALL_ROOT)/man/man1
 # You may prefer to use "install" instead of "cp" if you have it.
 # If you use "install", you may also want to change the permissions after -m.
 #
-INSTALL_EXEC= cp
-INSTALL_DATA= cp
+INSTALL_EXEC= $(BSD_INSTALL_PROGRAM)
+INSTALL_DATA= $(BSD_INSTALL_DATA)
 #INSTALL_EXEC= install -m 0755
 #INSTALL_DATA= install -m 0644