http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58995

            Bug ID: 58995
           Summary: Use of -ldl in libcilkrts breaks bootstrap
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kargl at gcc dot gnu.org

bsupc++/.libs -lpthread -ldl -L/home/sgk/gcc/obj4x/./gcc
/home/sgk/gcc/obj4x/x86_64-unknown-freebsd10.0/libstdc++-v3/src/.libs/libstdc++.so
-lm -lc -lgcc_s /home/sgk/gcc/obj4x/./gcc/crtendS.o /usr/lib/crtn.o   
-Wl,-soname -Wl,libcilkrts.so.5 -o .libs/libcilkrts.so.5
/usr/bin/ld: cannot find -ldl
collect2: error: ld returned 1 exit status
gmake[2]: *** [libcilkrts.la] Error 1
gmake[2]: Leaving directory
`/usr/home/sgk/gcc/obj4x/x86_64-unknown-freebsd10.0/libcilkrts'
gmake[1]: *** [all-target-libcilkrts] Error 2
gmake[1]: Leaving directory `/usr/home/sgk/gcc/obj4x'
gmake: *** [all] Error 2


This is caused by the hardcoded reference to libdl.


troutmask:sgk[319] grep ldl libcilkrts/Makefile.am 
AM_LDFLAGS = -lpthread -ldl
libcilkrts_la_LDFLAGS += -lpthread -ldl

Please fix.

Reply via email to