From: David Woodhouse <dwmw2@infradead.org>
To: Erik Mouw <erik@harddisk-recovery.com>
Cc: "Srinivas G." <srinivasg@esntechnologies.co.in>,
linux-kernel@vger.kernel.org
Subject: Re: Small problem, Can anybody help me?
Date: Thu, 06 May 2004 18:27:45 +0100 [thread overview]
Message-ID: <1083864464.12742.1.camel@localhost.localdomain> (raw)
In-Reply-To: <20040506142827.GI15056@harddisk-recovery.com>
On Thu, 2004-05-06 at 16:28 +0200, Erik Mouw wrote:
> The way to compile a module on linux 2.4 is:
>
> gcc -O2 -Wall -I/path/to/kernel/include/directory -D__KERNEL__ -DMODULE -c hello.c
That doesn't always work. It gets the CFLAGS wrong. You should always
use
make -C $KERNELDIR SUBDIRS=`pwd` modules
--
dwmw2
next prev parent reply other threads:[~2004-05-06 17:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-06 14:01 Small problem, Can anybody help me? Srinivas G.
2004-05-06 14:28 ` Erik Mouw
2004-05-06 17:27 ` David Woodhouse [this message]
2004-05-06 14:33 ` Dave Jones
2004-05-06 15:47 ` Richard B. Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1083864464.12742.1.camel@localhost.localdomain \
--to=dwmw2@infradead.org \
--cc=erik@harddisk-recovery.com \
--cc=linux-kernel@vger.kernel.org \
--cc=srinivasg@esntechnologies.co.in \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.