xfs
[Top] [All Lists]

Re: compile errors

To: Jim Mostek <mostek@xxxxxxx>
Subject: Re: compile errors
From: "Andi Kleen" <ak@xxxxxxx>
Date: Thu, 27 Apr 2000 20:00:37 +0200
Cc: suzukis@xxxxxxxxxxxxxxxxxxxxxx, ealonso@xxxxxxxxxxxxxxxxx, linux-xfs@xxxxxxxxxxx
In-reply-to: <200004271731.MAA62387@fsgi344.americas.sgi.com>; from mostek@sgi.com on Thu, Apr 27, 2000 at 12:31:44PM -0500
References: <20000427165847.13187.qmail@file.phys.tohoku.ac.jp> <200004271731.MAA62387@fsgi344.americas.sgi.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Thu, Apr 27, 2000 at 12:31:44PM -0500, Jim Mostek wrote:
> 
> You hit the nail on the head.
> We are focusing on getting XFS working now and will deal with
> compatability issues later.
> 
> It would be great if you could provide some patches with fixes
> to work with the the gcc version you have. We would integrate these
> after some study.

Try this patch (the same technique is used in other places of the 2.3
kernel): 


--- linux/fs/xfs/Makefile-o     Fri Apr 28 03:51:41 2000
+++ linux/fs/xfs/Makefile       Fri Apr 28 04:04:33 2000
@@ -44,9 +44,12 @@
 EXTRA_FIND_DIRECTORIES = linux pseudo-inc
 EXTRA_INCLUDE_DIRECTORIES = -I./linux -I./pseudo-inc -I.
 
-EXTRA_CFLAGS += -g3 -Wno-unused  -Wno-unknown-pragmas -Wno-parentheses \
+EXTRA_CFLAGS += -g3 -Wno-unused  -Wno-parentheses \
                 -Wno-uninitialized ${EXTRA_INCLUDE_DIRECTORIES} -D_KERNEL \
                -funsigned-char 
+
+EXTRA_CFLAGS += $(shell if $(CC) -Wno-unknown-pragmas -S -o /dev/null -xc 
/dev/null >/dev/null 2>&1; then echo "-Wno-unknown-pragmas"; fi)
+
 
 # EXTRA_CFLAGS += -DDEBUG -DXFSDEBUG
 



-Andi

<Prev in Thread] Current Thread [Next in Thread>