]> git.mxchange.org Git - flightgear.git/commitdiff
Martin Spott:
authordurk <durk>
Tue, 17 Jul 2007 18:00:06 +0000 (18:00 +0000)
committerdurk <durk>
Tue, 17 Jul 2007 18:00:06 +0000 (18:00 +0000)
On most Unix platforms like FreeBSD, Solaris, IRIX (AIX is even worse)
- just not on Linux - the linker wants to know about _all_ required
libraries. So even if a shared library "libosgViewer" itself is linked
against "libosgGA" and "libosgText", you still have to name these in
order to build an "fgfs" binary.

Currently, other libraries like "-losgDB" and "-losgUtil" are
explicitly mentioned on the "fgfs" linker command, but "-losgGA" and
"-losgText" are not. This simple patch lets the linker honour
everything that's required

src/Main/Makefile.am

index e9c8e6becc72f3a1344cd2651b8bcb6f41a0a112..37838c9bc03124481795cadebd9d7202ac459069 100644 (file)
@@ -104,7 +104,7 @@ fgfs_LDADD = \
        -lsgstructure -lsgenvironment \
        -lplibpuaux -lplibpu -lplibfnt -lplibjs -lplibnet \
        -lplibsg -lplibul \
-       -losgViewer -losgFX -losgUtil -losgDB -losgSim -losg -lOpenThreads \
+       -losgViewer -losgGA -losgText -losgFX -losgUtil -losgDB -losgSim -losg -lOpenThreads \
        $(THREAD_LIBS) \
        $(network_LIBS) \
        -lz \