I am call static library which is compiled from c++ source. But It is tiring to write dependency libs and I find that libtool just do very well, for example, my libfoo.la
will have something like this:
dependency_libs=‘ /Users/roger/example/lib/bar/libbar.la -lm’
Now I am calling libfoo.a
in golang, but the dependencies can be complicated. libfoo.a
depends on libbar.a
,libbar.a
depends on libhaha.a
. can I make use of libfoo.la
when I build golang?(or some way make libfoo.a
and all its dependencies into one lib file?)