Bug 51948

Summary: linking -ldl on BSD in pyuno
Product: LibreOffice Reporter: Waitman Gobble <waitman>
Component: sdkAssignee: David Tardon <dtardon>
Status: RESOLVED FIXED    
Severity: normal CC: dtardon
Priority: medium    
Version: 3.6.0.0.beta3   
Hardware: All   
OS: FreeBSD   
Whiteboard: target:3.7.0
Crash report or crash signature: Regression By:

Description Waitman Gobble 2012-07-10 14:18:29 UTC
build fails in tail_build

[ build LNK ] Library/pyuno.so
/usr/local/bin/ld: cannot find -ldl
collect2: error: ld returned 1 exit status
gmake[2]: *** [/usr/home/waitman/libreoffice/libo/workdir/unxfbsd.pro/LinkTarget/Library/pyuno.so] Error 1


--> quick fix is to update Library_pyuno_wrapper.mk 

remove:

ifneq ($(GUI)$(COM),WNTMSC)
ifneq ($(OS),MACOSX)
$(eval $(call gb_Library_add_libs,pyuno_wrapper,\
-ldl \
))
endif
endif

However, probably condition should be added if OS = BSD/Unix to skip -ldl

Thank you.
Comment 1 Not Assigned 2012-07-13 12:29:08 UTC
David Tardon committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=e9c6367cd546e6cf69cc2212b5a8771599bc54d8

fdo#51948 do not link with dl on *BSD