On Thu, Aug 18, 2016 at 12:21 PM, stimits@comcast.net wrote:
configure:14589: checking for library containing dlopen configure:14620: gcc -o conftest -g -O2 conftest.c >&5 /tmp/ccyhVkpp.o: In function `main': /home/build/linaro/objdir/libcc1/conftest.c:38: undefined reference to `dlopen' collect2: error: ld returned 1 exit status configure:14620: $? = 1
This is normal. Configure does two link tests when checking for dlopen. The first one is just "gcc conftest.c" and the second one is "gcc conftest.c -dl". It is expected that the first link will fail, and the second link will succeed. The failure of the first link is ignored because the second one succeeded. After the second link, you will see a "result: -ldl" line which means the check for dlopen did succeed and the result is that -ldl is required.
If your build failed, the real failure is elsewhere.
Jim