2008-04-28 18:52:38 -04:00
|
|
|
$OpenBSD: patch-Makefile_target,v 1.12 2008/04/28 22:52:38 todd Exp $
|
|
|
|
--- Makefile.target.orig Sun Jan 6 14:38:41 2008
|
|
|
|
+++ Makefile.target Wed Apr 9 23:28:03 2008
|
|
|
|
@@ -136,11 +136,11 @@ endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
-ifeq ($(ARCH),x86_64)
|
|
|
|
- ifneq ($(CONFIG_SOLARIS),yes)
|
|
|
|
- BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
|
|
|
|
- endif
|
|
|
|
-endif
|
|
|
|
+#ifeq ($(ARCH),x86_64)
|
|
|
|
+# ifneq ($(CONFIG_SOLARIS),yes)
|
|
|
|
+# BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
|
|
|
|
+# endif
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
ifeq ($(ARCH),ppc)
|
|
|
|
CPPFLAGS+= -D__powerpc__
|
|
|
|
@@ -188,7 +188,7 @@ BASE_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/$(ARCH).ld
|
2005-12-27 02:56:14 -05:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(ARCH),arm)
|
2007-05-01 08:55:13 -04:00
|
|
|
-OP_CFLAGS+=-mno-sched-prolog -fno-omit-frame-pointer
|
|
|
|
+OP_CFLAGS+=-mno-sched-prolog -fno-omit-frame-pointer -mapcs-frame
|
|
|
|
BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
|
2005-12-27 02:56:14 -05:00
|
|
|
endif
|
|
|
|
|
2008-04-28 18:52:38 -04:00
|
|
|
@@ -215,6 +215,16 @@ BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
|
|
|
|
endif
|
2005-03-07 11:41:28 -05:00
|
|
|
endif
|
|
|
|
|
2005-09-26 16:47:56 -04:00
|
|
|
+# Very important for this 'ifeq' block to be after other
|
|
|
|
+# OP_CFLAGS= .. constructs above
|
2005-03-07 11:41:28 -05:00
|
|
|
+ifeq ($(shell uname -s),OpenBSD)
|
|
|
|
+OP_CFLAGS+= -fno-stack-protector
|
|
|
|
+endif
|
|
|
|
+
|
2008-04-28 18:52:38 -04:00
|
|
|
+ifdef CONFIG_OSS_LIBRARY
|
|
|
|
+LIBS+=-lossaudio
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
ifeq ($(CONFIG_DARWIN),yes)
|
|
|
|
LIBS+=-lmx
|
|
|
|
endif
|
|
|
|
@@ -232,6 +242,7 @@ OP_LDFLAGS+=$(OS_LDFLAGS) $(ARCH_LDFLAGS)
|
2005-08-10 21:15:17 -04:00
|
|
|
#########################################################
|
|
|
|
|
2007-05-01 08:55:13 -04:00
|
|
|
CPPFLAGS+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
|
|
|
|
+#CPPFLAGS+= -DDEBUG_GDB -DDEBUG -DDEBUG_KBD -DDEBUG_MOUSE
|
2005-08-10 21:15:17 -04:00
|
|
|
LIBS+=-lm
|
|
|
|
ifndef CONFIG_USER_ONLY
|
|
|
|
LIBS+=-lz
|
2008-04-28 18:52:38 -04:00
|
|
|
@@ -537,7 +548,7 @@ endif
|
2006-12-22 12:31:45 -05:00
|
|
|
ifndef CONFIG_DARWIN
|
|
|
|
ifndef CONFIG_WIN32
|
|
|
|
ifndef CONFIG_SOLARIS
|
2008-04-28 18:52:38 -04:00
|
|
|
-VL_LIBS+=-lutil
|
|
|
|
+#VL_LIBS+=-lutil
|
|
|
|
endif
|
2006-12-22 12:31:45 -05:00
|
|
|
endif
|
2006-02-16 11:27:44 -05:00
|
|
|
endif
|
2008-04-28 18:52:38 -04:00
|
|
|
@@ -557,12 +568,12 @@ ifeq ($(ARCH),sparc64)
|
|
|
|
endif
|
2005-03-07 11:41:28 -05:00
|
|
|
endif
|
2008-04-28 18:52:38 -04:00
|
|
|
|
|
|
|
-ifeq ($(ARCH),x86_64)
|
|
|
|
- VL_LDFLAGS+=-m64
|
|
|
|
- ifneq ($(CONFIG_SOLARIS),yes)
|
|
|
|
- VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
|
|
|
|
- endif
|
|
|
|
-endif
|
|
|
|
+#ifeq ($(ARCH),x86_64)
|
|
|
|
+# VL_LDFLAGS+=-m64
|
|
|
|
+# ifneq ($(CONFIG_SOLARIS),yes)
|
|
|
|
+# VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
|
|
|
|
+# endif
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
ifdef CONFIG_WIN32
|
|
|
|
SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole
|