Re: kbuild: LDFLAGS_MODULE unusable for external module builds (2.6.23-rc2)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Sam Ravnborg <sam@...>
Cc: <linux-kernel@...>, Roland McGrath <roland@...>
Date: Wednesday, September 26, 2007 - 5:56 am

Hello Sam,

Sam Ravnborg wrote:

Yes. This was a *very* helpfull. And many examples spokes about 
LDFLAGS_$@ there. Not directly described for modules.


depens = lib1 has external dependently from lib2, and lib2 later depends 
on externals from lib1. The main problem is, how can add multiple lib.a 
to module?


isn't usable. There I have problems with dependencies. dir/lib.a would 
not build, if lib.a is not in the list "...-objs".


An abstracted Makefile shows:
   obj-y := dir1/ dir2/ dir3/
   obj-m := name.ko
   name-objs = foo.o dir1/lib.a dir2/lib.a dir3/lib.a
   EXTRA_LDFLAGS := --start-group # recursive dependencies of libraries

 From short testing was seen the flags ok. The current project Makefile 
is in [1]. I will try "EXTRA_LDFLAGS := --start-group" without the 
end-group in the project tree and mail again. Thanks for your help.

[1] 
http://colinux.svn.sourceforge.net/svnroot/colinux/branches/devel/src/colinux/os/linux...

-- 
Henry

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: kbuild: LDFLAGS_MODULE unusable for external module buil..., Henry Nestler, (Wed Sep 26, 5:56 am)