mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
27 lines
854 B
Plaintext
27 lines
854 B
Plaintext
--- Makefile.unix.orig 2007-04-10 20:29:25.000000000 +0400
|
|
+++ Makefile.unix 2009-03-23 13:53:24.000000000 +0300
|
|
@@ -9,18 +9,18 @@
|
|
# library support. Add -DSAFESQL for poorely written ODBC library / drivers.
|
|
|
|
BUILDDIR =
|
|
-CC = gcc
|
|
+CC ?= gcc
|
|
|
|
# you may need -L/usr/pkg/lib for older NetBSD versions
|
|
-CFLAGS = -Wall -g -O2 -c -pthread -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL
|
|
+CFLAGS = -Wall -c %%CFLAGS%% ${PTHREAD_CFLAGS} -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL
|
|
COUT = -o
|
|
-LN = gcc
|
|
-LDFLAGS = -Wall -O2 -pthread
|
|
+LN ?= ${CC}
|
|
+LDFLAGS = -Wall ${PTHREAD_LIBS}
|
|
# -lpthreads may be reuqired on some platforms instead of -pthreads
|
|
# -ldl or -lld may be required for some platforms
|
|
DCFLAGS = -fpic
|
|
DLFLAGS = -shared
|
|
-DLSUFFICS = .ld.so
|
|
+DLSUFFICS = .so
|
|
LIBS =
|
|
LNOUT = -o
|
|
EXESUFFICS =
|