Lines 1-26
Link Here
|
1 |
--- Makefile.unix.orig 2007-04-10 20:29:25.000000000 +0400 |
1 |
--- Makefile.unix.orig 2014-09-03 10:45:13.000000000 +0400 |
2 |
+++ Makefile.unix 2009-03-23 13:53:24.000000000 +0300 |
2 |
+++ Makefile.unix 2014-09-03 10:46:45.000000000 +0400 |
3 |
@@ -9,18 +9,18 @@ |
3 |
@@ -9,18 +9,18 @@ |
4 |
# library support. Add -DSAFESQL for poorely written ODBC library / drivers. |
4 |
# library support. Add -DSAFESQL for poorely written ODBC library / drivers. |
5 |
|
5 |
|
6 |
BUILDDIR = |
6 |
BUILDDIR = |
7 |
-CC = gcc |
7 |
-CC = gcc |
8 |
+CC ?= gcc |
8 |
+CC ?= gcc |
9 |
|
9 |
|
10 |
# you may need -L/usr/pkg/lib for older NetBSD versions |
10 |
# you may need -L/usr/pkg/lib for older NetBSD versions |
11 |
-CFLAGS = -Wall -g -O2 -c -pthread -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL |
11 |
-CFLAGS = -Wall -g -O2 -c -pthread -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL |
12 |
+CFLAGS = -Wall -c %%CFLAGS%% ${PTHREAD_CFLAGS} -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL |
12 |
+CFLAGS = -Wall -c %%CFLAGS%% ${PTHREAD_CFLAGS} -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL |
13 |
COUT = -o |
13 |
COUT = -o |
14 |
-LN = gcc |
14 |
-LN = gcc |
15 |
-LDFLAGS = -Wall -O2 -pthread |
15 |
-LDFLAGS = -Wall -O2 -pthread |
16 |
+LN ?= ${CC} |
16 |
+LN ?= ${CC} |
17 |
+LDFLAGS = -Wall ${PTHREAD_LIBS} |
17 |
+LDFLAGS = -Wall ${PTHREAD_LIBS} |
18 |
# -lpthreads may be reuqired on some platforms instead of -pthreads |
18 |
# -lpthreads may be reuqired on some platforms instead of -pthreads |
19 |
# -ldl or -lld may be required for some platforms |
19 |
# -ldl or -lld may be required for some platforms |
20 |
DCFLAGS = -fpic |
20 |
DCFLAGS = -fpic |
21 |
DLFLAGS = -shared |
21 |
DLFLAGS = -shared |
22 |
-DLSUFFICS = .ld.so |
22 |
-DLSUFFICS = .ld.so |
23 |
+DLSUFFICS = .so |
23 |
+DLSUFFICS = .so |
24 |
LIBS = |
24 |
LIBS = |
25 |
LNOUT = -o |
25 |
LNOUT = -o |
26 |
EXESUFFICS = |
26 |
EXESUFFICS = |