Hello, I've built gcc 6.2.0 and I'm running into problems with programs that use dlopen. Specifically, I'm compiling TCL and Tk with gcc 6 and gcc 5 (for comparison). With gcc 6, it appears I must add "-ldl" when creating libtcl.so in order for a subsequent link that uses "-ltcl -ldl" will find dlopen. Without -ldl when creating libtcl.so the subsequent link fails to find dlopen even though it's invoked with -ldl. With gcc 5 this is not necessary. Is there any GCC 6 configuration option that can affect this? Both my gcc 6 and gcc 5 installation are built identically: GCC 5 config: Using built-in specs. COLLECT_GCC=gcc-5.1.0 COLLECT_LTO_WRAPPER=/export/navusr3/local/gnu/5.1.0/H-x86_64-rhel6-linux-gnu/bin/../libexec/gcc/x86_64-rhel6-linux-gnu/5.1.0/lto-wrapper Target: x86_64-rhel6-linux-gnu Configured with: /usr/central.share/gnu/src/gcc-5.1.0/configure --srcdir=/usr/central.share/gnu/src/gcc-5.1.0 --prefix=/usr/central.share/gnu/5.1.0 --exec-prefix=/usr/central.share/gnu/5.1.0/H-x86_64-rhel6-linux-gnu --enable-languages=c,c++ --enable-shared --enable-__cxa_atexit --disable-nls --disable-werror --enable-lto --enable-plugin --enable-gold=default --build=x86_64-rhel6-linux-gnu --host=x86_64-rhel6-linux-gnu --target=x86_64-rhel6-linux-gnu Thread model: posix gcc version 5.1.0 (GCC) GCC 6 config: Using built-in specs. COLLECT_GCC=gcc-6.2.0 COLLECT_LTO_WRAPPER=/export/navusr3/local/gnu/6.2.0/H-x86_64-rhel6-linux-gnu/bin/../libexec/gcc/x86_64-rhel6-linux-gnu/6.2.0/lto-wrapper Target: x86_64-rhel6-linux-gnu Configured with: /usr/central.share/gnu/src/gcc-6.2.0/configure --srcdir=/usr/central.share/gnu/src/gcc-6.2.0 --prefix=/usr/central.share/gnu/6.2.0 --exec-prefix=/usr/central.share/gnu/6.2.0/H-x86_64-rhel6-linux-gnu --enable-languages=c,c++ --enable-shared --enable-__cxa_atexit --disable-nls --disable-werror --enable-lto --enable-plugin --enable-gold=default --build=x86_64-rhel6-linux-gnu --host=x86_64-rhel6-linux-gnu --target=x86_64-rhel6-linux-gnu Thread model: posix gcc version 6.2.0 (GCC) Thanks in advance, -- Richard Sewards