<commit_before>diff -crB zlib-1.2.5/Makefile zlib-1.2.5-bgp/Makefile
*** zlib-1.2.5/Makefile	2010-07-23 23:09:05.460074523 +0300
--- zlib-1.2.5-bgp/Makefile	2010-07-23 23:07:10.089933409 +0300
***************
*** 24,33 ****
  #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
  #           -Wstrict-prototypes -Wmissing-prototypes
  
! SFLAGS= -D_LARGEFILE64_SOURCE=1
  LDFLAGS= -L. libz.a
  TEST_LDFLAGS=-L. libz.a
! LDSHARED=cc -shared
  CPP=/bgsys/drivers/ppcfloor/comm/xl/bin/mpixlc_r -E
  
  STATICLIB=libz.a
--- 24,33 ----
  #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
  #           -Wstrict-prototypes -Wmissing-prototypes
  
! SFLAGS= -D_LARGEFILE64_SOURCE=1 -qpic
  LDFLAGS= -L. libz.a
  TEST_LDFLAGS=-L. libz.a
! LDSHARED=${CC} -shared
  CPP=/bgsys/drivers/ppcfloor/comm/xl/bin/mpixlc_r -E
  
  STATICLIB=libz.a
***************
*** 119,125 ****
  
  match.lo: match.S
  	$(CPP) match.S > _match.s
! 	$(CC) -c -fPIC _match.s
  	mv _match.o match.lo
  	rm -f _match.s
  
--- 119,125 ----
  
  match.lo: match.S
  	$(CPP) match.S > _match.s
! 	$(CC) -c -qpic _match.s
  	mv _match.o match.lo
  	rm -f _match.s
  
***************
*** 137,143 ****
  	-@mv objs/$*.o $@
  
  $(SHAREDLIBV): $(PIC_OBJS)
! 	$(LDSHARED) $(SFLAGS) -o $@ $(PIC_OBJS) $(LDSHAREDLIBC) $(LDFLAGS)
  	rm -f $(SHAREDLIB) $(SHAREDLIBM)
  	ln -s $@ $(SHAREDLIB)
  	ln -s $@ $(SHAREDLIBM)
--- 137,143 ----
  	-@mv objs/$*.o $@
  
  $(SHAREDLIBV): $(PIC_OBJS)
! 	$(LDSHARED) $(SFLAGS) -qmkshrobj -qnostaticlink -o $@ $(PIC_OBJS) $(LDSHAREDLIBC) $(LDFLAGS)
  	rm -f $(SHAREDLIB) $(SHAREDLIBM)
  	ln -s $@ $(SHAREDLIB)
  	ln -s $@ $(SHAREDLIBM)
***************
*** 150,159 ****
  	$(CC) $(CFLAGS) -o $@ minigzip.o $(TEST_LDFLAGS)
  
  examplesh$(EXE): example.o $(SHAREDLIBV)
! 	$(CC) $(CFLAGS) -o $@ example.o -L. $(SHAREDLIBV)
  <commit_msg>fixed zlib patch to build proper so file<commit_after>diff -crB zlib-1.2.5/Makefile zlib-1.2.5.bgp/Makefile
*** zlib-1.2.5/Makefile	2010-07-24 13:40:31.072504615 +0300
--- zlib-1.2.5.bgp/Makefile	2010-07-24 13:39:14.962416203 +0300
***************
*** 24,33 ****
  #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
  #           -Wstrict-prototypes -Wmissing-prototypes
  
! SFLAGS= -D_LARGEFILE64_SOURCE=1
  LDFLAGS= -L. libz.a
  TEST_LDFLAGS=-L. libz.a
! LDSHARED=cc -shared
  CPP=/bgsys/drivers/ppcfloor/comm/xl/bin/mpixlc_r -E
  
  STATICLIB=libz.a
--- 24,33 ----
  #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
  #           -Wstrict-prototypes -Wmissing-prototypes
  
! SFLAGS= -D_LARGEFILE64_SOURCE=1 -qpic
  LDFLAGS= -L. libz.a
  TEST_LDFLAGS=-L. libz.a
! LDSHARED=${CC} -qmkshrobj -qnostaticlink
  CPP=/bgsys/drivers/ppcfloor/comm/xl/bin/mpixlc_r -E
  
  STATICLIB=libz.a
***************
*** 119,125 ****
  
  match.lo: match.S
  	$(CPP) match.S > _match.s
! 	$(CC) -c -fPIC _match.s
  	mv _match.o match.lo
  	rm -f _match.s
  
--- 119,125 ----
  
  match.lo: match.S
  	$(CPP) match.S > _match.s
! 	$(CC) -c -qpic _match.s
  	mv _match.o match.lo
  	rm -f _match.s
  
***************
*** 150,159 ****
  	$(CC) $(CFLAGS) -o $@ minigzip.o $(TEST_LDFLAGS)
  
  examplesh$(EXE): example.o $(SHAREDLIBV)
! 	$(CC) $(CFLAGS) -o $@ example.o -L. $(SHAREDLIBV)
  
{'fraction_non_alphanumeric': 0.2203755001538935, 'fraction_numerical': 0.06525084641428132, 'mean_word_length': 2.8056206088992974, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2620000', 'n_tokens_mistral': 1678, 'n_tokens_neox': 1510, 'n_words': 252}