summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-aj
blob: d972ebf598e6ce1c203b9f2138901e20f679d0eb (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
$NetBSD: patch-aj,v 1.2 2004/12/14 01:02:19 dbj Exp $

--- Makefile.target.orig	Sun Nov 14 15:51:33 2004
+++ Makefile.target
@@ -7,8 +7,8 @@ ifdef CONFIG_USER_ONLY
 VPATH+=:$(SRC_PATH)/linux-user
 DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH)
 endif
-CFLAGS=-Wall -O2 -g -fno-strict-aliasing
-LDFLAGS=-g
+#CFLAGS=-Wall -O2 -g -fno-strict-aliasing
+#LDFLAGS=-g
 LIBS=
 HELPER_CFLAGS=$(CFLAGS)
 DYNGEN=../dyngen$(EXESUF)
@@ -181,6 +181,9 @@ endif
 
 DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
 LIBS+=-lm
+ifdef CONFIG_DARWIN
+LIBS+=-lmx
+endif
 ifndef CONFIG_USER_ONLY
 LIBS+=-lz
 endif
@@ -397,7 +400,7 @@ clean:
 
 install: all 
 ifneq ($(PROGS),)
-	install -m 755 -s $(PROGS) "$(bindir)"
+	$(BSD_INSTALL_PROGRAM) $(PROGS) "$(bindir)"
 endif
 
 ifneq ($(wildcard .depend),)