[lkml]   [2001]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Exporting symbols from a module.

I just looked at what the kernel did whne compiling a module that
exported some symbols, and discovered that I needed
to set CFLAGS to:

-D__KERNEL__ -I$/usr/src/linux) -Wall -Wstrict-prototypes \
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe \

Now all works correctly, and I can load my modules.

Thanks for all your help.
eps. the tip when I try to compile it in the kernel tree.

Anders Fugmann

Anders Peter Fugmann wrote:

> Hi Andreas.
> I now see what you mean, and I will give it a try.
> But actually I'm not compiling it under the linux kernel tree, and I
> really would like a way to export symbols, while compiling outside the
> kernel tree. How would I accomplish that?
> Regards
> Anders Fugmann

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:53    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean