<commit_before>#!smake
SHELL   = /bin/sh
OSGHOME = $(shell cd ../../..; pwd)

include $(OSGHOME)/Make/makedefs

C++FILES = \
	ReaderWriterTXP.cpp\
	TrPageArchive.cpp\
	TrPageParser.cpp\
	trpage_basic.cpp\
	trpage_geom.cpp\
	trpage_header.cpp\
	trpage_tile.cpp\
	trpage_readbuf.cpp\
	trpage_rarchive.cpp\
	trpage_writebuf.cpp\
	trpage_warchive.cpp\
	trpage_parse.cpp\
	trpage_nodes.cpp\
	trpage_model.cpp\
	trpage_material.cpp\
	trpage_swap.cpp

TARGET_BASENAME = osgdb_txp

LIB = 
LOADABLE = $(OSGHOME)/lib/osgPlugins/$(TARGET_BASENAME).$(DL_EXT)

TARGET_LOADER_FILES = osgPlugins/$(TARGET_BASENAME).$(DL_EXT)

LIBS    =  $(GL_LIBS) -losg -losgDB
MACOSXLIBS = -L$(OSGHOME)/lib -losg -losgDB -lstdc++

C++FLAGS += -I. -I$(OSGHOME)/include
LDFLAGS += -L$(OSGHOME)/lib

include $(OSGHOME)/Make/makerules
<commit_msg>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.<commit_after>#!smake
SHELL   = /bin/sh
OSGHOME = $(shell cd ../../..; pwd)

include $(OSGHOME)/Make/makedefs

C++FILES = \
	ReaderWriterTXP.cpp\
	TrPageArchive.cpp\
	TrPageParser.cpp\
	trpage_basic.cpp\
	trpage_geom.cpp\
	trpage_header.cpp\
	trpage_tile.cpp\
	trpage_readbuf.cpp\
	trpage_rarchive.cpp\
	trpage_writebuf.cpp\
	trpage_warchive.cpp\
	trpage_parse.cpp\
	trpage_nodes.cpp\
	trpage_model.cpp\
	trpage_material.cpp\
	trpage_swap.cpp

TARGET_BASENAME = osgdb_txp

LIB = 
LOADABLE = $(OSGHOME)/lib/osgPlugins/$(TARGET_BASENAME).$(DL_EXT)

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.
# <NAME>, Feb 2002.
CFLAGS    += -O

C++FLAGS += -I. -I$(OSGHOME)/include
LDFLAGS += -L$(OSGHOME)/lib

include $(OSGHOME)/Make/makerules

{'fraction_non_alphanumeric': 0.12377711612079965, 'fraction_numerical': 0.005104210974053594, 'mean_word_length': 4.0256410256410255, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4010800', 'n_tokens_mistral': 944, 'n_tokens_neox': 906, 'n_words': 225}