34 lines
825 B
Text
34 lines
825 B
Text
$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),)
|