blob: 19c8ed4bcd927b95a558c0ac45ea0a0bef56545a (
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
|
$NetBSD: patch-aa,v 1.17 2007/09/05 20:37:08 adam Exp $
--- makefile.machine.orig 2007-09-01 10:26:00.000000000 +0200
+++ makefile.machine
@@ -2,20 +2,20 @@
# makefile for Linux (x86, PPC, alpha ...)
#
-OPTFLAGS=-O
+OPTFLAGS=
-ALLFLAGS=${OPTFLAGS} -s \
+ALLFLAGS=${OPTFLAGS} -Wall \
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
-DNDEBUG -D_REENTRANT -DENV_UNIX \
$(LOCAL_FLAGS)
-CXX=g++ $(ALLFLAGS)
-CC=gcc $(ALLFLAGS)
-CC_SHARED=-fPIC
-LINK_SHARED=-fPIC -shared
+CXX+=$(ALLFLAGS)
+CC+=$(ALLFLAGS)
+CC_SHARED=
+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)
|