blob: 2fa85579d7a004613df771321da5de01f5e3cedd (
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
|
$NetBSD: patch-aa,v 1.15 2007/04/30 09:12:54 adam Exp $
--- makefile.machine.orig 2007-04-21 21:01:38.000000000 +0200
+++ makefile.machine
@@ -3,19 +3,19 @@
# LITTLE_ENDIAN and BIG_ENDIAN are already defined by the system headers
#
-OPTFLAGS=-O
+OPTFLAGS=
-ALLFLAGS=${OPTFLAGS} -s -fPIC \
+ALLFLAGS=${OPTFLAGS} -Wall \
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
-DNDEBUG -D_REENTRANT -DENV_UNIX \
$(LOCAL_FLAGS)
-CXX=g++ $(ALLFLAGS)
-CC=gcc $(ALLFLAGS)
+CXX+=$(ALLFLAGS)
+CC+=$(ALLFLAGS)
LINK_SHARED=-shared
-LOCAL_LIBS=-lpthread
-LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl
+LOCAL_LIBS=${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
+LOCAL_LIBS_DLL=$(LOCAL_LIBS)
OBJ_CRC32=$(OBJ_CRC32_C)
|