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
-