Make interlibrary dependencies explicit
Under the latest Gentoo (2.6.34-gentoo-r2) the interlibrary dependencies must be made explicit. This is likely due to the --as-needed linker option which is commonly used under Gentoo. This option requires that the linker only include the minimum set of symbols required by the binary. Without the full dependency tree the linker would need to bring in all the symbols from dependent libraries. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
7f939f28eb
commit
e69bd526c1
|
@ -9,6 +9,8 @@ DEFAULT_INCLUDES += \
|
|||
|
||||
lib_LTLIBRARIES = libuutil.la
|
||||
|
||||
libuutil_la_LIBADD = ${top_srcdir}/lib/libavl/libavl.la
|
||||
|
||||
libuutil_la_SOURCES = \
|
||||
${top_srcdir}/lib/libuutil/uu_alloc.c \
|
||||
${top_srcdir}/lib/libuutil/uu_avl.c \
|
||||
|
|
|
@ -16,6 +16,12 @@ DEFAULT_INCLUDES += \
|
|||
|
||||
lib_LTLIBRARIES = libzfs.la
|
||||
|
||||
libzfs_la_LDFLAGS = -lm
|
||||
|
||||
libzfs_la_LIBADD = \
|
||||
${top_srcdir}/lib/libefi/libefi.la \
|
||||
${top_srcdir}/lib/libuutil/libuutil.la
|
||||
|
||||
libzfs_la_SOURCES = \
|
||||
${top_srcdir}/lib/libzfs/libzfs_changelist.c \
|
||||
${top_srcdir}/lib/libzfs/libzfs_config.c \
|
||||
|
|
|
@ -15,6 +15,11 @@ DEFAULT_INCLUDES += \
|
|||
|
||||
lib_LTLIBRARIES = libzpool.la
|
||||
|
||||
libzpool_la_LIBADD = \
|
||||
${top_srcdir}/lib/libunicode/libunicode.la \
|
||||
${top_srcdir}/lib/libavl/libavl.la \
|
||||
${top_srcdir}/lib/libspl/libspl.la
|
||||
|
||||
libzpool_la_SOURCES = \
|
||||
${top_srcdir}/lib/libzpool/kernel.c \
|
||||
${top_srcdir}/lib/libzpool/taskq.c \
|
||||
|
|
Loading…
Reference in New Issue