bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/16203] gold -ldl link fails on Gentoo/FreeBSD


From: nigoro.gentoo at 0x100 dot com
Subject: [Bug gold/16203] gold -ldl link fails on Gentoo/FreeBSD
Date: Fri, 22 Nov 2013 10:44:05 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16203

--- Comment #1 from Yuta SATOH <nigoro.gentoo at 0x100 dot com> ---
Created attachment 7292
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7292&action=edit
sample patch for gold/configure.ac

This patch will add code to check libdl.

on Gentoo/FreeBSD)

gold/config.log

configure:7205: checking for library containing dlopen
configure:7236: g++ -o conftest -g -O2  -static-libstdc++ -static-libgcc 
conftest.cpp -lz  >&5
configure:7236: $? = 0
configure:7253: result: none required

$ grep DLOPEN_LIBS gold/config.log
DLOPEN_LIBS=''

on Gentoo/Linux)

gold/config.log

configure:7205: checking for library containing dlopen
configure:7236: g++ -o conftest -g -O2  -static-libstdc++ -static-libgcc 
conftest.cpp -lz  >&5
/tmp/cc4uzcSO.o: In function `main':
/home/nigoro/tmp/binutils/build/gold/conftest.cpp:73: undefined reference to
`dlopen'
collect2: ld returned 1 exit status
configure:7236: $? = 1
configure: failed program was:
<snip>
configure:7236: g++ -o conftest -g -O2  -static-libstdc++ -static-libgcc 
conftest.cpp -ldl  -lz  >&5
configure:7236: $? = 0
configure:7253: result: -ldl

$ grep DLOPEN_LIBS gold/config.log
DLOPEN_LIBS='-ldl'

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]