Date: Wed, 30 May 2012 02:50:29 +0400 (MSK) From: Dmitry Marakasov <amdmi3@amdmi3.ru> To: FreeBSD-gnats-submit@freebsd.org Cc: office@FreeBSD.org Subject: [PATCH] editors/libreoffice: add LDFLAGS Message-ID: <20120529225029.7A4BADD2@hades.panopticon>
next in thread | raw e-mail | index | archive | help
>Submitter-Id: current-users >Originator: Dmitry Marakasov >Organization: >Confidential: no >Synopsis: [PATCH] editors/libreoffice: add LDFLAGS >Severity: serious >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 9.0-RELEASE amd64 >Environment: System: FreeBSD hades.panopticon 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 10 01:33:18 MSK 2012 >Description: LO doesn't configure for me with all options disabled: --- checking which db to use... external checking db-42/db.h usability... no checking db-42/db.h presence... no checking for db-42/db.h... no checking db42/db.h usability... yes checking db42/db.h presence... yes checking for db42/db.h... yes checking whether db is at least 4.1... yes checking for dbopen in -ldb-4.2... no checking for __db185_open in -ldb-4.2... no checking for dbopen in -ldb-4.2... no checking for __db185_open in -ldb-4.2... no configure: error: db library not found. Use the correct -L flag, or install the Berkeley db development package. --- config.log: --- configure:23270: checking for dbopen in -ldb-4.2 configure:23305: clang -o conftest -O2 -pipe -march=nocona -fno-strict-aliasing -I/usr/local/include -I/usr/local/include/db42 -rpath=/usr/lib:/usr/local/lib conftest.c -ldb-4.2 >&5 clang: warning: argument unused during compilation: '-rpath=/usr/lib:/usr/local/lib' /usr/bin/ld: cannot find -ldb-4.2 clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:23312: $? = 1 --- Adding standard LDFLAGS fixes it. Port maintainer (office@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: CVS) >How-To-Repeat: Try to build libreoffice with all options disabled. >Fix: --- libreoffice-3.5.2_2.patch begins here --- Index: Makefile =================================================================== RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/editors/libreoffice/Makefile,v retrieving revision 1.43 diff -u -u -r1.43 Makefile --- Makefile 6 May 2012 23:44:41 -0000 1.43 +++ Makefile 29 May 2012 22:47:12 -0000 @@ -236,6 +236,7 @@ MAKE_ENV+= USE_GMAKE=1 DESTDIR=${LODESTDIR} CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/db${BDB_VER} +LDFLAGS+= -L${LOCALBASE}/lib .if defined(WITH_PGSQL) USE_PGSQL= yes --- libreoffice-3.5.2_2.patch ends here ---
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120529225029.7A4BADD2>