Well, OIS only builds as static lib under Linux. It could build under shared lib, but that would need a patch for the configure scripts (to allow building of shared lib).
I wrote such a patch. The patch actually just changes the src/Makefile.am to use libtool to build the library. Then I get both a static and a shared library, which is what I want. The reason that I want this is because when I get time, I might build RPMs for Fedora Core of everything I have used yet, such as OIS, Ogre, DevIL (Ogre dependency) and CEGUI.
Since I cannot attach a patch to this message, I include it in the message body instead:
--- ois/src/Makefile.am 2006-03-04 21:29:29.000000000 +0100
+++ ois-0.6.0/src/Makefile.am 2006-04-15 23:03:00.000000000 +0200
@@ -1,10 +1,7 @@
INCLUDES = $(STLPORT_CFLAGS) -I$(top_srcdir)/includes $(CFLAGS) -I/usr/X11R6/in
clude
-#libOIS_LTLIBRARIES=libOIS.la
-libOISdir = $(libdir)
-libOIS_LIBRARIES = libOIS.a
-
-libOIS_a_SOURCES = OISInputManager.cpp \
+lib_LTLIBRARIES=libOIS.la
+libOIS_la_SOURCES = OISInputManager.cpp \
OISObject.cpp \
OISEffect.cpp \
OISJoyStick.cpp \
@@ -16,9 +13,9 @@
./linux/LinuxMouse.cpp
if OIS_BUILD_LINUX_EVENTS
-libOIS_a_SOURCES += ./linux/LinuxJoyStickEvents.cpp ./linux/LinuxForceFeedback.
cpp
+libOIS_la_SOURCES += ./linux/LinuxJoyStickEvents.cpp ./linux/LinuxForceFeedback
.cpp
else
-libOIS_a_SOURCES += ./linux/LinuxJoyStick.cpp
+libOIS_la_SOURCES += ./linux/LinuxJoyStick.cpp
endif
#libOIS_a_LIBFLAGS = -L/usr/X11R6/lib
Any reason why you didn't use libtool? As you can see in the patch, the first line removed is actually a commented-out libtool line, so it seems like you had already some plans to use it.