[patch] [libobjc] fix build with --disable-shared and .la files

Matthias Klose doko@ubuntu.com
Sat Dec 31 06:05:00 GMT 2016


This addresses PR libobjc/78698, fixing the build with --disable-shared and .la
files available.  As mentioned in the bug report I'm not aware of a configure
check to write a check using LIBTOOL_LINK and LIBTOOL_COMPILE, because these
commands (using libtool) are only created by running the configure file,
therefore checking for the presence of a .la file.

Tested with a libgc installation in /opt/gcc/include, /opt/gcc/lib32,
/opt/gcc/lib64 and configured with

--prefix=/opt/gcc7 --enable-languages=c,c++,objc --disable-shared
--enable-objc-gc=yes --with-multilib-list=m32,m64 --enable-checking=release
--disable-bootstrap --with-target-bdw-gc-include=/opt/gcc/include
--with-target-bdw-gc-lib=/opt/gcc/lib64,32=/opt/gcc/lib32

Ok for the trunk?

Matthias

libobjc/

2016-12-24  Matthias Klose  <doko@ubuntu.com>

        PR libobjc/78698
        * configure.ac: Use the libgc.la file when available.
        * configure: Regenerate.

gcc/

2016-12-31  Matthias Klose  <doko@ubuntu.com>

        * doc/install.texi: Allow default for --with-target-bdw-gc-include.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr78698.diff
Type: text/x-diff
Size: 4157 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161231/cc03c554/attachment.bin>


More information about the Gcc-patches mailing list