http://bugs.winehq.org/show_bug.cgi?id=8441
Summary: configure script test with wrong outcome on OpenBSD Product: Wine Version: 0.9.37. Platform: Other OS/Version: OpenBSD Status: UNCONFIRMED Severity: minor Priority: P2 Component: wine-ports AssignedTo: wine-bugs@winehq.org ReportedBy: utg_vrtz@yahoo.se
The test shown below succeeds, which it shouldn't on OpenBSD. (One workaround is to remove some AC_TRY_FLAGS lines in configure.ac, but I haven't come up with a proper solution.)
From configure:
echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\ $ORIGIN/../lib" >&5
From configure.ac:
WINE_TRY_CFLAGS([-fPIC -Wl,--rpath,$ORIGIN/../lib], [LIBWINE_LDFLAGS="-Wl,--rpath,\$$ORIGIN/`$(RELPATH) \ $(bindir) $(libdir)`"], [WINE_TRY_CFLAGS([-fPIC -Wl,-R,$ORIGIN/../lib], [LIBWINE_LDFLAGS="-Wl,-R,\$$ORIGIN/`$(RELPATH) \ $(bindir) $(libdir)`"])])
From config.log:
configure:13138: checking whether the compiler supports -fPIC -Wl,--rpath,$ORIGI N/../lib configure:13161: gcc -o conftest -g -O2 -fPIC -Wl,--rpath,$ORIGIN/../lib conft est.c -lossaudio -li386 >&5 configure:13167: $? = 0 configure:13171: test -z || test ! -s conftest.err configure:13174: $? = 0 configure:13177: test -s conftest configure:13180: $? = 0 configure:13193: result: yes