diff options
author | Yanko Kaneti <yaneti@declera.com> | 2014-02-10 11:49:22 +0200 |
---|---|---|
committer | Yanko Kaneti <yaneti@declera.com> | 2014-02-10 13:20:55 +0200 |
commit | 4ae83f6699474f590927d2c4770806779703d75d (patch) | |
tree | 17f94e23a35eb0796509a41d198cd057774c915b | |
parent | 4f07de740e3d2ec3a4b6c063c48b21b405aff207 (diff) | |
download | libmediaart-4ae83f6699474f590927d2c4770806779703d75d.tar.gz |
build: Force automake C linkage when building C only
Automake chooses the linker to use by examining the _SOURCES.
Unfortunately this includes all potential sources, even the ones excluded by
CONDITIONALS, so it picks CXXLINK because of extractqt.cpp.
Linking the library with CXXLINK brings with it a soname linkage with
libstdc++.
override _LINK for the library target to force automake
to use the specific linker, C(LINK) or C++(CXXLINK)
https://bugzilla.gnome.org/show_bug.cgi?id=723877
-rw-r--r-- | libmediaart/Makefile.am | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libmediaart/Makefile.am b/libmediaart/Makefile.am index a7879e3..8403d23 100644 --- a/libmediaart/Makefile.am +++ b/libmediaart/Makefile.am @@ -34,11 +34,14 @@ libmediaart_@LIBMEDIAART_API_VERSION@_la_SOURCES = \ if HAVE_GDKPIXBUF libmediaart_@LIBMEDIAART_API_VERSION@_la_SOURCES += extractpixbuf.c +libmediaart_@LIBMEDIAART_API_VERSION@_la_LINK = $(LINK) $(libmediaart_@LIBMEDIAART_API_VERSION@_la_LDFLAGS) else if HAVE_QT libmediaart_@LIBMEDIAART_API_VERSION@_la_SOURCES += extractqt.cpp +libmediaart_@LIBMEDIAART_API_VERSION@_la_LINK = $(CXXLINK) $(libmediaart_@LIBMEDIAART_API_VERSION@_la_LDFLAGS) else libmediaart_@LIBMEDIAART_API_VERSION@_la_SOURCES += extractdummy.c +libmediaart_@LIBMEDIAART_API_VERSION@_la_LINK = $(LINK) $(libmediaart_@LIBMEDIAART_API_VERSION@_la_LDFLAGS) endif endif |