* optimization of kernel compilation
@ 2013-03-19 4:39 ishare
0 siblings, 0 replies; only message in thread
From: ishare @ 2013-03-19 4:39 UTC (permalink / raw)
To: linux-newbie
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-03-19 4:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-19 4:39 optimization of kernel compilation ishare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox