Closed orbea closed 6 years ago
@TheOnlyJoey When you have some time could you look at this PR? It would be appreciated if a correct fix could be reached for my issue.
We changed build system to CMake. The changes in this PR aren't relevant anymore. However, if you have this issue and are still using OIS, we probably can do something about it. I'm closing this PR.
(to be clear : CMake should find the correct library whether you are running a 32 or 64bit build.)
This attempts to fix issue https://github.com/wgois/OIS/issues/24.
The problem is the
-L/usr/X11R6/lib
insrc/Makefile.am
, on Slackware 64-bit systems it expects it to be in/usr/X11R6/lib64
. This can be avoided by checking the libraries in the configure.ac withAC_CHECK_LIB
where it seems to be able of replacing the currentAC_CHECK_HEADERS
. I am not certainXOpenDisplay
is the best choice to check against, but it seems to work and is a common example when browsing other configure.ac files. One alternative might beXClearWindow
? Any suggestions to improve this are of course welcome.I tested this by using ldd on the compiled library where it did not change what it was linked against.
Before
After