From 425b0a001d7e12870aec1dfad366f9b9fb180275 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 07:05:19 +0000 Subject: [PATCH] 2003/09/07 09:35:50 darcs-hash:20040130070519-2ba56-9ef49de2ab5c029614007dc850dc8db9c6963430.gz --- upstream/darwin-linker/patches/cctools.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/upstream/darwin-linker/patches/cctools.patch b/upstream/darwin-linker/patches/cctools.patch index 3c3fb20..49913ce 100644 --- a/upstream/darwin-linker/patches/cctools.patch +++ b/upstream/darwin-linker/patches/cctools.patch @@ -2095,3 +2095,24 @@ diff -bur ./symbols.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/sym + return msg_result; + } +} +--- ar/Makefile Sun Sep 7 01:35:22 2003 ++++ ar/Makefile Sun Sep 7 01:32:55 2003 +@@ -2,12 +2,16 @@ + ifeq "mwccppc" "$(notdir $(CC))" + CFLAGS = -g $(OFLAG) -I$(SRCROOT)/../include + else +- CFLAGS = -g $(OFLAG) -Wall -Wno-precomp -I$(SRCROOT)/../include ++ ifeq "Linux" "$(shell uname)" ++ CFLAGS = -Wall $(X_CFLAGS) -D__LITTLE_ENDIAN__ -U__BIG_ENDIAN__ -D__ppc__ -I/usr/include -I../../../macosx-include -I../include ++ else ++ CFLAGS = -g $(OFLAG) -Wall -Wno-precomp -I$(SRCROOT)/../include ++ endif + endif + + LIBSTUFF = -L$(SYMROOT)/../libstuff -lstuff + +-USE_DEPENDENCY_FILE := $(shell if [ "$(notdir $(CC))" != "mwccppc" ]; then \ ++USE_DEPENDENCY_FILE := $(shell if [ `uname` != "Linux" ] && [ "$(notdir $(CC))" != "mwccppc" ]; then \ + echo YES ; else echo NO ; \ + fi; ) + -- 1.7.10.4