theLink 10.0
Loading...
Searching...
No Matches
Internal - application package

Using the libmqmsgque package.

+ Collaboration diagram for Internal - application package:

Using the libmqmsgque package.

With automake/libtool the libmqmsgque library needs to be linked with the executable/library, this is done with:

‍LDADD = path/to/libmqmsgque.la

or

‍mylib_la_LIBADD = path/to/libmqmsgque.la

Example from acmds/Makefile.am using libmkkernel.la and libmqmsgque.la:

atool_SOURCES = atool.c ajoin.c acut.c asort.c asplit.c optionL.c optionL.h
atool_CPPFLAGS = $(CPPFLAGS_mqmsgque)
atool_CFLAGS = $(CFLAGS_mqmsgque)
if ENABLE_STATIC
atool_LDFLAGS = -static @noversion_LDFLAGS@
atool_LDADD = $(LIBADD_mqmsgque_static)
else
atool_LDFLAGS = -shared @noversion_LDFLAGS@
atool_LDADD = $(LIBADD_mqmsgque_shared)
endif