Fixed Linux hang of the TXP loader by overriding the default -O2 optimization
level which appears to cause the code to hang, -O works fine for some strange reason, I havn't found any direct problems in the code. This may be compiler bug or a code bug, the bug may go away in later versions of GNUC++, the problem currently occurs under GCC2.96.
This commit is contained in:
parent
6238cef37f
commit
aeaa31bd2a
@ -32,6 +32,14 @@ TARGET_LOADER_FILES = osgPlugins/$(TARGET_BASENAME).$(DL_EXT)
|
||||
LIBS = $(GL_LIBS) -losg -losgDB
|
||||
MACOSXLIBS = -L$(OSGHOME)/lib -losg -losgDB -lstdc++
|
||||
|
||||
# override the compiler optimization, since GNU C++ 2.96 has problems with
|
||||
# areas of the TXP loader code when compiling at -O2 optimization level.
|
||||
# -O works fine?! Guess this is a tempory bug, or may be something more
|
||||
# subtle in the TXP code itself, but my investigations havn't revealled
|
||||
# anything to fix, right now it looks like just a compiler bug.
|
||||
# Robert Osfield, Feb 2002.
|
||||
CFLAGS += -O
|
||||
|
||||
C++FLAGS += -I. -I$(OSGHOME)/include
|
||||
LDFLAGS += -L$(OSGHOME)/lib
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user