From: ishare <june.tune.sea@gmail.com>
To: linux-newbie@vger.kernel.org
Subject: optimization of kernel compilation
Date: Tue, 19 Mar 2013 12:39:20 +0800 [thread overview]
Message-ID: <20130319043920.GA25133@debian.localdomain> (raw)
If do not set -O2 to kernel compile option , I will get somw error aue to several symboles
is undefined reference to ,for example:
in ext3/super.c : undefined reference to `ntohl'
I take a lppk at the definition in source code for ntohl, it seems affected
by the __OPTIMIZE__ macro , which make this symbole defined as a macro .just
like this : #define ntohl(x) ___ntohl(x)
But if I do not define __OPTIMIZE__ ,which means I need not any optimization,
How can I compile successfully? Is there the corresponding ntohl() function in kernel ?
I kave not found that yet. Does this mean I must use __OPTIMIZE__ by -O2 ?
thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
reply other threads:[~2013-03-19 4:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20130319043920.GA25133@debian.localdomain \
--to=june.tune.sea@gmail.com \
--cc=linux-newbie@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).