xfs/linux/Makefile.in
Chris Wing
wingc at engin.umich.edu
Sat Dec 4 23:41:12 CET 1999
I believe that the Linux kernel code may need to use different options to
compile correctly, namely a different compiler entirely is used on sparc64
(due to the fact that the kernel is a 64-bit binary but user programs are
32-bit), and on Alpha the compiler must be told to preserve certain
registers to work properly in the kernel. ('-ffixed-8')
Have you tried the patch on non-i386 architectures? I may be mistaken
about all this, though, I haven't looked at it that closely.
-Chris Wing
wingc at engin.umich.edu
On Sat, 4 Dec 1999, Dave Morrison wrote:
> Hello-
>
> The Makefile in xfs/linux doesn't use the value of CFLAGS passed along
> by configure. I couldn't see any good reason why it shouldn't use the
> autoconf'ed value of CFLAGS, and the fact that it doesn't caused me some
> problems when trying to compile it. This patch fixes this:
>
> diff -ru orig/arla-0.29pre1/xfs/linux/Makefile.in
> arla-0.29pre1/xfs/linux/Makefile.in
> --- orig/arla-0.29pre1/xfs/linux/Makefile.in Mon Oct 4 04:19:37 1999
> +++ arla-0.29pre1/xfs/linux/Makefile.in Sat Dec 4 14:59:48 1999
> @@ -30,11 +30,12 @@
> XFS_BIN = $(MODULE)
>
> DEFS = @DEFS@ @KERNEL_CFLAGS@ -DDEBUG
> -INC = -I$(srcdir)/../include \
> +INCLUDES = -I. \
> + -I$(srcdir)/../include \
> -I../../include \
> - -I$(srcdir)/../../include
> -INCLUDES = $(INC) @KRB_INC_FLAGS@
> -CFLAGS = -Wall -I. $(INCLUDES) -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer
> + -I$(srcdir)/../../include \
> + @KRB_INC_FLAGS@
> +CFLAGS = @CFLAGS@ $(INCLUDES) -Wstrict-prototypes -fomit-frame-pointer
> KERNEL_LDFLAGS = @KERNEL_LDFLAGS@
>
> SUBDIRS = bin
>
> Cheers,
> Dave
>
> --
> David Morrison Brookhaven National Laboratory phone: 631-344-5840
> Physics Department, Bldg 510 C fax: 631-344-3253
> Upton, NY 11973-5000 email: dave at bnl.gov
>
More information about the Arla-drinkers
mailing list