Kaydet (Commit) 29215619 authored tarafından Michael Stahl's avatar Michael Stahl

configure: filter -L/usr/lib etc. out of *_LIBS

The goal is to avoid build breakage by pkg-config or whatever helpfully
putting default paths like -L/usr/lib64 into *_LIBS, which is entirely
useless since ld searches there anyway but may override other -L that
occur later on the command line for LO bundled externals.

On a Fedora 22 system, at least these variales were affected:
 CLUCENE_LIBS FIREBIRD_LIBS KDE4_LIBS POSTGRESQL_LIB BOOST_LDFLAGS

Change-Id: Ie55f65c3ae29a125f16871d95ad8b716abf5c982
Reviewed-on: https://gerrit.libreoffice.org/19784Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst f9334da9
This diff is collapsed.
......@@ -17,6 +17,8 @@ if test "$with_system_$1" = "yes"; then
SYSTEM_$2=TRUE
PKG_CHECK_MODULES([$2], [$3])
$2_CFLAGS=$(printf '%s' "${$2_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
FilterLibs "${$2_LIBS}"
$2_LIBS="$filteredlibs"
else
AC_MSG_RESULT([internal])
SYSTEM_$2=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment